mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-08 17:04:55 +00:00
CParticleDatabase implementations
This commit is contained in:
@@ -90,6 +90,7 @@ private:
|
||||
float x6c_generatorRemainder = 0.f;
|
||||
int x90_MAXP = 0;
|
||||
u16 x94_randomSeed = 99;
|
||||
float x9c_cextValues[16] = {};
|
||||
float x78_generatorRate = 1.f;
|
||||
zeus::CVector3f x7c_translation;
|
||||
zeus::CVector3f x88_globalTranslation;
|
||||
@@ -221,6 +222,8 @@ public:
|
||||
u32 GetParticleCountAll() const {return x20c_recursiveParticleCount;}
|
||||
void EndLifetime();
|
||||
void ForceParticleCreation(int amount);
|
||||
float GetCEXTValue(int i) const { return x9c_cextValues[i]; }
|
||||
void SetCEXTValue(int i, float v) { x9c_cextValues[i] = v; }
|
||||
|
||||
bool InternalUpdate(double);
|
||||
void RenderModels();
|
||||
|
||||
@@ -339,7 +339,7 @@ bool CRECEXT::GetValue(int frame, float& valOut) const
|
||||
int a;
|
||||
x4_a->GetValue(frame, a);
|
||||
int cv = std::max(0, a);
|
||||
/* TODO: Figure out how value table is generated/stored in 0-00 */
|
||||
valOut = CParticleGlobals::g_currentParticleSystem->x4_system->GetCEXTValue(cv & 0xf);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user