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

Function zEntButton_Load

src/SB/Game/zEntButton.cpp:136–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void zEntButton_Load(_zEntButton* ent, xSerial* s)
137{
138 zEntLoad(ent, s);
139
140 int unk1 = 0, unk2 = 0;
141
142 s->Read_b1(&unk1);
143 if (unk1 != 0)
144 {
145 ent->state = 1;
146 }
147
148 s->Read_b1(&unk2);
149 if (unk2 != 0)
150 {
151 ent->state = 1;
152 }
153}
154
155void zEntButton_Reset(_zEntButton* ent, xScene* sc)
156{

Callers 1

zSceneLoadFunction · 0.70

Calls 2

zEntLoadFunction · 0.85
Read_b1Method · 0.80

Tested by

no test coverage detected