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

Function SGSObjAI

Descent3/gamesave.cpp:1227–1234  ·  view source on GitHub ↗

saves ai

Source from the content-addressed store, hash-verified

1225
1226// saves ai
1227void SGSObjAI(CFILE *fp, const ai_frame *ai) {
1228 gs_WriteByte(fp, (ai ? 1 : 0));
1229 if (!ai)
1230 return;
1231
1232 gs_WriteShort(fp, sizeof(ai_frame));
1233 cf_WriteBytes((uint8_t *)ai, sizeof(ai_frame), fp);
1234}
1235
1236// saves script
1237//@@void SGSScript(CFILE *fp, const script_info *script)

Callers 1

SGSObjectsFunction · 0.85

Calls 1

cf_WriteBytesFunction · 0.85

Tested by

no test coverage detected