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

Function zLightEventCB

src/SB/Game/zLight.cpp:178–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178S32 zLightEventCB(xBase* param_1, xBase* to, U32 toEvent, const float* param_4, xBase* param_5)
179{
180 _zLight* t = (_zLight*)to;
181 switch (toEvent)
182 {
183 case 38:
184 {
185 t->flags |= 1;
186 break;
187 }
188 case 39:
189 {
190 t->flags &= 0xfffffffe;
191 break;
192 }
193 case 10:
194 {
195 zLightReset(t);
196 break;
197 }
198 default:
199 {
200 break;
201 }
202 }
203 return 1;
204}
205
206// Float issue
207void zLightUpdate(xBase* to, xScene* param_2, F32 dt)

Callers

nothing calls this directly

Calls 1

zLightResetFunction · 0.85

Tested by

no test coverage detected