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

Function zEntButton_Save

src/SB/Game/zEntButton.cpp:113–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void zEntButton_Save(_zEntButton* ent, xSerial* s)
114{
115 zEntSave(ent, s);
116
117 if (ent->state == 3)
118 {
119 s->Write_b1(1);
120 }
121 else
122 {
123 s->Write_b1(0);
124 }
125
126 if (ent->state == 1)
127 {
128 s->Write_b1(1);
129 }
130 else
131 {
132 s->Write_b1(0);
133 }
134}
135
136void zEntButton_Load(_zEntButton* ent, xSerial* s)
137{

Callers 1

zSceneSaveFunction · 0.85

Calls 2

zEntSaveFunction · 0.85
Write_b1Method · 0.80

Tested by

no test coverage detected