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

Function zEntEventAllOfType

src/SB/Game/zEnt.cpp:294–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292}
293
294void zEntEventAllOfType(xBase* from, U32 fromEvent, U32 toEvent, F32* toParam, U32 type)
295{
296 zScene* s = globals.sceneCur;
297 if (s == NULL)
298 {
299 return;
300 }
301
302 for (U16 i = 0; i < s->num_base; i++)
303 {
304 xBase* base = s->base[i];
305 if (type == base->baseType)
306 {
307 zEntEvent(from, fromEvent, base, toEvent, toParam, NULL, 0);
308 }
309 }
310}
311
312void zEntEventAllOfType(U32 toEvent, U32 type)
313{

Callers 2

zGameStateSwitchFunction · 0.85
zGameModeSwitchFunction · 0.85

Calls 1

zEntEventFunction · 0.50

Tested by

no test coverage detected