2016-02-05 01:27:03 +00:00
|
|
|
#ifndef __RETRO_CINTELEMENT_HPP__
|
|
|
|
#define __RETRO_CINTELEMENT_HPP__
|
|
|
|
|
2016-02-05 08:34:14 +00:00
|
|
|
#include "IElement.hpp"
|
|
|
|
|
2016-02-05 01:27:03 +00:00
|
|
|
namespace Retro
|
|
|
|
{
|
|
|
|
|
2016-02-05 08:34:14 +00:00
|
|
|
class CIEKeyframeEmitter : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
u32 x4_percent;
|
|
|
|
u32 x8_unk1;
|
|
|
|
bool xc_loop;
|
|
|
|
bool xd_unk2;
|
|
|
|
u32 x10_loopEnd;
|
|
|
|
u32 x14_loopStart;
|
|
|
|
std::vector<int> x18_keys;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIEKeyframeEmitter(CInputStream& in);
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIEDeath : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
std::unique_ptr<CIntElement> x4_a;
|
|
|
|
std::unique_ptr<CIntElement> x8_b;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIEDeath(CIntElement* a, CIntElement* b)
|
|
|
|
: x4_a(a), x8_b(b) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIEClamp : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
std::unique_ptr<CIntElement> x4_min;
|
|
|
|
std::unique_ptr<CIntElement> x8_max;
|
|
|
|
std::unique_ptr<CIntElement> xc_val;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIEClamp(CIntElement* a, CIntElement* b, CIntElement* c)
|
|
|
|
: x4_min(a), x8_max(b), xc_val(c) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIETimeChain : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
std::unique_ptr<CIntElement> x4_a;
|
|
|
|
std::unique_ptr<CIntElement> x8_b;
|
|
|
|
std::unique_ptr<CIntElement> xc_c;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIETimeChain(CIntElement* a, CIntElement* b, CIntElement* c)
|
|
|
|
: x4_a(a), x8_b(b), xc_c(c) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIEAdd : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
std::unique_ptr<CIntElement> x4_a;
|
|
|
|
std::unique_ptr<CIntElement> x8_b;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIEAdd(CIntElement* a, CIntElement* b)
|
|
|
|
: x4_a(a), x8_b(b) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIEConstant : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
int x4_val;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIEConstant(int val) : x4_val(val) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIEImpulse : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
std::unique_ptr<CIntElement> x4_a;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIEImpulse(CIntElement* a)
|
|
|
|
: x4_a(a) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIELifetimePercent : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
std::unique_ptr<CIntElement> x4_a;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIELifetimePercent(CIntElement* a)
|
|
|
|
: x4_a(a) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIEInitialRandom : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
std::unique_ptr<CIntElement> x4_a;
|
|
|
|
std::unique_ptr<CIntElement> x8_b;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIEInitialRandom(CIntElement* a, CIntElement* b)
|
|
|
|
: x4_a(a), x8_b(b) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIEPulse : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
std::unique_ptr<CIntElement> x4_a;
|
|
|
|
std::unique_ptr<CIntElement> x8_b;
|
|
|
|
std::unique_ptr<CIntElement> xc_c;
|
|
|
|
std::unique_ptr<CIntElement> x10_d;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIEPulse(CIntElement* a, CIntElement* b, CIntElement* c, CIntElement* d)
|
|
|
|
: x4_a(a), x8_b(b), xc_c(c), x10_d(d) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIEMultiply : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
std::unique_ptr<CIntElement> x4_a;
|
|
|
|
std::unique_ptr<CIntElement> x8_b;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIEMultiply(CIntElement* a, CIntElement* b)
|
|
|
|
: x4_a(a), x8_b(b) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIESampleAndHold : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
std::unique_ptr<CIntElement> x4_a;
|
|
|
|
std::unique_ptr<CIntElement> x8_b;
|
|
|
|
std::unique_ptr<CIntElement> xc_c;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIESampleAndHold(CIntElement* a, CIntElement* b, CIntElement* c)
|
|
|
|
: x4_a(a), x8_b(b), xc_c(c) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIERandom : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
std::unique_ptr<CIntElement> x4_a;
|
|
|
|
std::unique_ptr<CIntElement> x8_b;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIERandom(CIntElement* a, CIntElement* b)
|
|
|
|
: x4_a(a), x8_b(b) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIETimeScale : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
std::unique_ptr<CRealElement> x4_a;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIETimeScale(CRealElement* a)
|
|
|
|
: x4_a(a) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIEGTCP : public CIntElement
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIEModulo : public CIntElement
|
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
std::unique_ptr<CIntElement> x4_a;
|
|
|
|
std::unique_ptr<CIntElement> x8_b;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIEModulo(CIntElement* a, CIntElement* b)
|
|
|
|
: x4_a(a), x8_b(b) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CIESubtract : public CIntElement
|
2016-02-05 01:27:03 +00:00
|
|
|
{
|
2016-02-06 00:34:40 +00:00
|
|
|
std::unique_ptr<CIntElement> x4_a;
|
|
|
|
std::unique_ptr<CIntElement> x8_b;
|
2016-02-05 08:34:14 +00:00
|
|
|
public:
|
2016-02-06 00:34:40 +00:00
|
|
|
CIESubtract(CIntElement* a, CIntElement* b)
|
|
|
|
: x4_a(a), x8_b(b) {}
|
2016-02-05 08:34:14 +00:00
|
|
|
bool GetValue(int frame, int& valOut) const;
|
2016-02-05 01:27:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // __RETRO_CINTELEMENT_HPP__
|