MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / zEntPickup_Save

Function zEntPickup_Save

src/SB/Game/zEntPickup.cpp:1114–1128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1112}
1113
1114void zEntPickup_Save(zEntPickup* ent, xSerial* s)
1115{
1116 zEntSave(ent, s);
1117
1118 s->Write_b7(ent->state);
1119
1120 if (ent->pickupFlags & 0x2)
1121 {
1122 s->Write_b1(1);
1123 }
1124 else
1125 {
1126 s->Write_b1(0);
1127 }
1128}
1129
1130void zEntPickup_Load(zEntPickup* ent, xSerial* s)
1131{

Callers 1

zSceneSaveFunction · 0.85

Calls 3

zEntSaveFunction · 0.85
Write_b7Method · 0.80
Write_b1Method · 0.80

Tested by

no test coverage detected