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

Function xParGroupUpdateR

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

Source from the content-addressed store, hash-verified

316}
317
318static void xParGroupUpdateR(xParSys* s, xParGroup* g, F32 dt)
319{
320 if (s->parent != NULL)
321 {
322 xParGroupUpdateR(s->parent, g, dt);
323 }
324
325 if (!s->group->m_active)
326 {
327 return;
328 }
329
330 for (U32 i = 0; i < s->cmdCount; i++)
331 {
332 xParCmd* cmd = &s->cmd[i];
333 if (cmd != NULL && cmd->tasset != NULL)
334 {
335 void (*func)(xParCmd*, xParGroup*, F32) = xParCmdGetUpdateFunc(cmd->tasset->type);
336 if (func != NULL)
337 {
338 func(cmd, g, dt);
339 }
340 }
341 }
342}
343
344static void xParGroupUpdate(xParSys* s, xParGroup* g, F32 dt)
345{

Callers 1

xParSysUpdateFunction · 0.70

Calls 1

xParCmdGetUpdateFuncFunction · 0.85

Tested by

no test coverage detected