2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 17:47:43 +00:00

Add ability to reset particle system

This commit is contained in:
2016-02-17 20:44:06 -08:00
parent 365f6ac9e7
commit 8cd46293c2
5 changed files with 21 additions and 1 deletions

View File

@@ -2230,4 +2230,20 @@ void CElementGen::DestroyParticles()
ch->DestroyParticles();
}
void CElementGen::Reset()
{
x2c_particleLists.clear();
x3c_parentMatrices.clear();
x234_activePartChildren.clear();;
x248_finishPartChildren.clear();
x280_elscChildren.clear();
x260_swhcChildren.clear();
x50_curFrame = 0;
x58_curSeconds = 0.f;
x64_prevFrame = -1;
x208_activeParticleCount = 0;
x225_28_warmedUp = false;
}
}