Match & link CIntElement

Former-commit-id: a110979970
This commit is contained in:
2022-10-09 12:34:58 -04:00
parent ac84b38d5d
commit f64e9c953a
36 changed files with 2011 additions and 1349 deletions

View File

@@ -1,11 +1,43 @@
#ifndef _CPARTICLEGLOBALS
#define _CPARTICLEGLOBALS
#include "types.h"
#include "Kyoto/SObjectTag.hpp"
class CElementGen;
class CParticleGlobals {
public:
struct SParticleSystem {
FourCC x0_type;
CElementGen* x4_system;
};
static void SetEmitterTime(int time);
static void SetParticleLifetime(int lifetime);
static void UpdateParticleLifetimeTweenValues(int time);
static int GetParticleLifetime() { return mParticleLifetime; }
static float GetParticleLifetimeReal() { return mParticleLifetimeReal; }
static int GetEmitterTime() { return mEmitterTime; }
static float GetEmitterTimeReal() { return mEmitterTimeReal; }
static int GetParticleLifetimePercentage() { return mParticleLifetimePercentage; }
static float GetParticleLifetimePercentageReal() { return mParticleLifetimePercentageReal; }
static float GetParticleLifetimePercentageRemainder() {
return mParticleLifetimePercentageRemainder;
}
static SParticleSystem* GetCurrentParticleSystem() { return mCurrentParticleSystem; }
private:
static int mParticleLifetime;
static float mParticleLifetimeReal;
static int mEmitterTime;
static float mEmitterTimeReal;
static int mParticleLifetimePercentage;
static float mParticleLifetimePercentageReal;
static float mParticleLifetimePercentageRemainder;
static SParticleSystem* mCurrentParticleSystem;
};
#endif // _CPARTICLEGLOBALS