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

Function DemoWriteAttachObj

Descent3/demofile.cpp:1487–1494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1485}
1486
1487void DemoWriteAttachObj(object *parent, char parent_ap, object *child, char child_ap, bool f_aligned) {
1488 cf_WriteByte(Demo_cfp, DT_ATTACH);
1489 cf_WriteShort(Demo_cfp, OBJNUM(parent));
1490 cf_WriteByte(Demo_cfp, parent_ap);
1491 cf_WriteShort(Demo_cfp, OBJNUM(child));
1492 cf_WriteByte(Demo_cfp, child_ap);
1493 cf_WriteByte(Demo_cfp, f_aligned ? 1 : 0);
1494}
1495
1496void DemoReadAttachObj(void) {
1497 int16_t old_objnum;

Callers 1

AttachObjectFunction · 0.85

Calls 2

cf_WriteByteFunction · 0.85
cf_WriteShortFunction · 0.85

Tested by

no test coverage detected