MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / WriteMatcenChunk

Function WriteMatcenChunk

Descent3/LoadLevel.cpp:4730–4746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4728}
4729
4730void WriteMatcenChunk(CFILE *fp) {
4731 int start_pos;
4732
4733 start_pos = StartChunk(fp, CHUNK_MATCEN_DATA);
4734
4735 cf_WriteInt(fp, Num_matcens);
4736
4737 int i;
4738
4739 for (i = 0; i < Num_matcens; i++) {
4740 ASSERT(Matcen[i]);
4741 Matcen[i]->Reset(); // Makes it like it hasn't run yet
4742 Matcen[i]->SaveData(fp);
4743 }
4744
4745 EndChunk(fp, start_pos);
4746}
4747
4748void WriteALifeChunk(CFILE *fp) {
4749#ifndef NEWEDITOR

Callers 1

SaveLevelFunction · 0.85

Calls 5

StartChunkFunction · 0.85
cf_WriteIntFunction · 0.85
EndChunkFunction · 0.85
ResetMethod · 0.45
SaveDataMethod · 0.45

Tested by

no test coverage detected