2022-10-18 02:05:27 +00:00
|
|
|
#ifndef _CREALELEMENT
|
|
|
|
#define _CREALELEMENT
|
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "Kyoto/Particles/IElement.hpp"
|
|
|
|
|
|
|
|
#include "rstl/vector.hpp"
|
|
|
|
|
|
|
|
class CREConstant : public CRealElement {
|
|
|
|
float x4_val;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREConstant(float val);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREConstant() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
|
|
|
bool IsConstant() const override { return true; }
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CRESineWave : public CRealElement {
|
|
|
|
CRealElement* x4_frequency;
|
|
|
|
CRealElement* x8_amplitude;
|
|
|
|
CRealElement* xc_phase;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CRESineWave(CRealElement* a, CRealElement* b, CRealElement* c);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CRESineWave() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CRETimeScale : public CRealElement {
|
|
|
|
CRealElement* x4_a;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CRETimeScale(CRealElement* a);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CRETimeScale() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREAdd : public CRealElement {
|
|
|
|
CRealElement* x4_a;
|
|
|
|
CRealElement* x8_b;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREAdd(CRealElement* a, CRealElement* b);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREAdd() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREMultiply : public CRealElement {
|
|
|
|
CRealElement* x4_a;
|
|
|
|
CRealElement* x8_b;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREMultiply(CRealElement* a, CRealElement* b);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREMultiply() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREDotProduct : public CRealElement {
|
|
|
|
CVectorElement* x4_a;
|
|
|
|
CVectorElement* x8_b;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREDotProduct(CVectorElement* a, CVectorElement* b);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREDotProduct() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CRERandom : public CRealElement {
|
|
|
|
CRealElement* x4_min;
|
|
|
|
CRealElement* x8_max;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CRERandom(CRealElement* min, CRealElement* max);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CRERandom() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREInitialRandom : public CRealElement {
|
|
|
|
CRealElement* x4_min;
|
|
|
|
CRealElement* x8_max;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREInitialRandom(CRealElement* min, CRealElement* max);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREInitialRandom() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
|
|
|
bool IsConstant() const override { return true; }
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CRETimeChain : public CRealElement {
|
|
|
|
CRealElement* x4_a;
|
|
|
|
CRealElement* x8_b;
|
|
|
|
CIntElement* xc_swFrame;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CRETimeChain(CRealElement* a, CRealElement* b, CIntElement* c);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CRETimeChain() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREClamp : public CRealElement {
|
|
|
|
CRealElement* x4_min;
|
|
|
|
CRealElement* x8_max;
|
|
|
|
CRealElement* xc_val;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREClamp(CRealElement* a, CRealElement* b, CRealElement* c);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREClamp() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREPulse : public CRealElement {
|
|
|
|
CIntElement* x4_aDuration;
|
|
|
|
CIntElement* x8_bDuration;
|
|
|
|
CRealElement* xc_valA;
|
|
|
|
CRealElement* x10_valB;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREPulse(CIntElement* a, CIntElement* b, CRealElement* c, CRealElement* d);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREPulse() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CRELifetimePercent : public CRealElement {
|
|
|
|
CRealElement* x4_percentVal;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CRELifetimePercent(CRealElement* a); // : x4_percentVal(a) {}
|
2023-02-06 17:01:01 +00:00
|
|
|
~CRELifetimePercent() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CRELifetimeTween : public CRealElement {
|
|
|
|
CRealElement* x4_a;
|
|
|
|
CRealElement* x8_b;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CRELifetimeTween(CRealElement* a, CRealElement* b);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CRELifetimeTween() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREKeyframeEmitter : public CRealElement {
|
|
|
|
int x4_percent;
|
|
|
|
int x8_unk1;
|
|
|
|
bool xc_loop;
|
|
|
|
bool xd_unk2;
|
|
|
|
int x10_loopEnd;
|
|
|
|
int x14_loopStart;
|
|
|
|
rstl::vector< float > x18_keys;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREKeyframeEmitter(CInputStream& in);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREKeyframeEmitter() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREParticleAccessParameter1 : public CRealElement {
|
|
|
|
public:
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREParticleAccessParameter1() override {}
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREParticleAccessParameter2 : public CRealElement {
|
|
|
|
public:
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREParticleAccessParameter2() override {}
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREParticleAccessParameter3 : public CRealElement {
|
|
|
|
public:
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREParticleAccessParameter3() override {}
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREParticleAccessParameter4 : public CRealElement {
|
|
|
|
public:
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREParticleAccessParameter4() override {}
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREParticleAccessParameter5 : public CRealElement {
|
|
|
|
public:
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREParticleAccessParameter5() override {}
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREParticleAccessParameter6 : public CRealElement {
|
|
|
|
public:
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREParticleAccessParameter6() override {}
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREParticleAccessParameter7 : public CRealElement {
|
|
|
|
public:
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREParticleAccessParameter7() override {}
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREParticleAccessParameter8 : public CRealElement {
|
|
|
|
public:
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREParticleAccessParameter8() override {}
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREParticleSizeOrLineLength : public CRealElement {
|
|
|
|
public:
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREParticleSizeOrLineLength() override {}
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREParticleRotationOrLineWidth : public CRealElement {
|
|
|
|
public:
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREParticleRotationOrLineWidth() override {}
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREVectorXToReal : public CRealElement {
|
|
|
|
CVectorElement* x4_a;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREVectorXToReal(CVectorElement* a);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREVectorXToReal() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREVectorYToReal : public CRealElement {
|
|
|
|
CVectorElement* x4_a;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREVectorYToReal(CVectorElement* a);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREVectorYToReal() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREVectorZToReal : public CRealElement {
|
|
|
|
CVectorElement* x4_a;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREVectorZToReal(CVectorElement* a);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREVectorZToReal() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREVectorMagnitude : public CRealElement {
|
|
|
|
CVectorElement* x4_a;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREVectorMagnitude(CVectorElement* a);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREVectorMagnitude() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREInitialSwitch : public CRealElement {
|
|
|
|
CRealElement* x4_a;
|
|
|
|
CRealElement* x8_b;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREInitialSwitch(CRealElement* a, CRealElement* b);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREInitialSwitch() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CRECompareLessThan : public CRealElement {
|
|
|
|
CRealElement* x4_a;
|
|
|
|
CRealElement* x8_b;
|
|
|
|
CRealElement* xc_c;
|
|
|
|
CRealElement* x10_d;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CRECompareLessThan(CRealElement* a, CRealElement* b, CRealElement* c, CRealElement* d);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CRECompareLessThan() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CRECompareEqual : public CRealElement {
|
|
|
|
CRealElement* x4_a;
|
|
|
|
CRealElement* x8_b;
|
|
|
|
CRealElement* xc_c;
|
|
|
|
CRealElement* x10_d;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CRECompareEqual(CRealElement* a, CRealElement* b, CRealElement* c, CRealElement* d);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CRECompareEqual() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREConstantRange : public CRealElement {
|
|
|
|
CRealElement* x4_val;
|
|
|
|
CRealElement* x8_min;
|
|
|
|
CRealElement* xc_max;
|
|
|
|
CRealElement* x10_inRange;
|
|
|
|
CRealElement* x14_outOfRange;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREConstantRange(CRealElement* a, CRealElement* b, CRealElement* c, CRealElement* d,
|
|
|
|
CRealElement* e);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREConstantRange() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREExternalVar : public CRealElement {
|
|
|
|
CIntElement* x4_a;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREExternalVar(CIntElement* a);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREExternalVar() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CRESubtract : public CRealElement {
|
|
|
|
CRealElement* x4_a;
|
|
|
|
CRealElement* x8_b;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CRESubtract(CRealElement* a, CRealElement* b);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CRESubtract() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREGetComponentRed : public CRealElement {
|
|
|
|
CColorElement* x4_a;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREGetComponentRed(CColorElement* a);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREGetComponentRed() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREGetComponentGreen : public CRealElement {
|
|
|
|
CColorElement* x4_a;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREGetComponentGreen(CColorElement* a);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREGetComponentGreen() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREGetComponentBlue : public CRealElement {
|
|
|
|
CColorElement* x4_a;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREGetComponentBlue(CColorElement* a);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREGetComponentBlue() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREGetComponentAlpha : public CRealElement {
|
|
|
|
CColorElement* x4_a;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREGetComponentAlpha(CColorElement* a);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREGetComponentAlpha() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class CREIntTimesReal : public CRealElement {
|
|
|
|
CIntElement* x4_a;
|
|
|
|
CRealElement* x8_b;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CREIntTimesReal(CIntElement* a, CRealElement* b);
|
2023-02-06 17:01:01 +00:00
|
|
|
~CREIntTimesReal() override;
|
|
|
|
bool GetValue(int frame, float& valOut) const override;
|
2022-10-18 02:05:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _CREALELEMENT
|