prime/include/Kyoto/Particles/CParticleGlobals.hpp

44 lines
1.4 KiB
C++
Raw Normal View History

#ifndef _CPARTICLEGLOBALS
#define _CPARTICLEGLOBALS
2022-10-04 19:58:17 +00:00
2022-10-09 16:34:58 +00:00
#include "types.h"
#include "Kyoto/SObjectTag.hpp"
class CElementGen;
2022-10-04 19:58:17 +00:00
class CParticleGlobals {
public:
2022-10-09 16:34:58 +00:00
struct SParticleSystem {
FourCC x0_type;
CElementGen* x4_system;
};
2022-10-04 19:58:17 +00:00
static void SetEmitterTime(int time);
static void SetParticleLifetime(int lifetime);
static void UpdateParticleLifetimeTweenValues(int time);
2022-10-09 16:34:58 +00:00
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;
2022-10-04 19:58:17 +00:00
};
#endif // _CPARTICLEGLOBALS