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

Various stubs, and starting on core functionality

This commit is contained in:
2015-11-02 10:45:39 -08:00
parent 1e55a59568
commit b261e09f51
33 changed files with 360 additions and 70 deletions

View File

@@ -8,10 +8,39 @@ namespace Retro
class CElementGen : public CParticleGen
{
bool x68_particleEmission;
float x78_generatorRate;
Zeus::CVector3f x88_globalTranslation;
Zeus::CTransform x1d8_globalOrientation;
std::vector<CElementGen> x238_children;
std::vector<CElementGen> x240_children;
std::vector<CElementGen> x254_children;
public:
virtual const Zeus::CVector3f& GetGlobalTranslation() const
{ return x88_globalTranslation; }
virtual const Zeus::CTransform& GetGlobalOrientation() const
{ return x1d8_globalOrientation; }
virtual bool GetParticleEmission() const
{ return x68_particleEmission; }
void SetGeneratorRateScalar(float scalar)
{
if (scalar >= 0.0f)
x78_generatorRate = scalar;
else
x78_generatorRate = 0.0f;
for (CElementGen& child : x240_children)
child.SetGeneratorRateScalar(x78_generatorRate);
for (CElementGen& child : x254_children)
child.SetGeneratorRateScalar(x78_generatorRate);
}
static void Initialize()
{
}
void BuildParticleSystemBounds();
};
}