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

Function xParSysUpdate

src/SB/Core/x/xParSys.cpp:283–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

281static void xParGroupUpdateR(xParSys* s, xParGroup* g, F32 dt);
282static void xParGroupUpdate(xParSys* s, xParGroup* g, F32 dt);
283void xParSysUpdate(xBase* to, xScene* scn, F32 dt)
284{
285 xParSys* s = (xParSys*)to;
286 xParSys* parent = s->parent;
287 if (s->tasset->renderFunc == NULL)
288 {
289 par_sprite_begin();
290 }
291
292 xParGroup* g = s->group;
293 while (g != NULL)
294 {
295 if (g->m_active)
296 {
297 if (parent)
298 {
299 xParGroupUpdateR(parent, g, dt);
300 }
301
302 if (g->m_alive)
303 {
304 xParGroupUpdate(s, g, dt);
305 }
306 }
307
308 xParGroupAnimate(g, dt);
309 if (g->m_num_of_particles > 0 && !s->tasset->renderFunc)
310 {
311 par_sprite_update(*s, *g);
312 }
313
314 g = g->m_next;
315 }
316}
317
318static void xParGroupUpdateR(xParSys* s, xParGroup* g, F32 dt)
319{

Callers 1

zSceneUpdateFunction · 0.50

Calls 5

par_sprite_beginFunction · 0.85
xParGroupUpdateFunction · 0.85
xParGroupUpdateRFunction · 0.70
xParGroupAnimateFunction · 0.70
par_sprite_updateFunction · 0.70

Tested by

no test coverage detected