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

Function xParSysReset

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

Source from the content-addressed store, hash-verified

214}
215
216void xParSysReset(xParSys* t)
217{
218 xBaseReset(t, t->tasset);
219
220 if (t->group != NULL)
221 {
222 xParGroupKillAllParticles(t->group);
223
224 t->visible = t->tasset->parFlags & 0x1;
225
226 xParGroupSetAging(t->group, (((t->tasset->parFlags >> 1) & 0x1) ^ 0x1) & 0xFF);
227 xParGroupSetVisibility(t->group, t->visible);
228 xParGroupSetBack2Life(t->group,(((t->tasset->parFlags >> 2) & 0x1) ^ 0x1) & 0xFF);
229 }
230}
231
232void xParSysExit(xParSys* t)
233{

Callers 1

xParSysEventCBFunction · 0.85

Calls 5

xBaseResetFunction · 0.85
xParGroupSetAgingFunction · 0.85
xParGroupSetVisibilityFunction · 0.85
xParGroupSetBack2LifeFunction · 0.85

Tested by

no test coverage detected