mirror of https://github.com/PrimeDecomp/prime.git
31 lines
684 B
C++
31 lines
684 B
C++
#ifndef _CCHARANIMTIME
|
|
#define _CCHARANIMTIME
|
|
|
|
#include "types.h"
|
|
|
|
class CCharAnimTime {
|
|
public:
|
|
enum EType {
|
|
kT_NonZero,
|
|
kT_ZeroIncreasing,
|
|
kT_ZeroSteady,
|
|
kT_ZeroDecreasing,
|
|
kT_Infinity,
|
|
};
|
|
float GetSeconds() const { return x0_time; }
|
|
|
|
explicit CCharAnimTime(EType type, float time) : x0_time(time), x4_type(type) {}
|
|
CCharAnimTime(const CCharAnimTime& other) : x0_time(other.x0_time), x4_type(other.x4_type) {}
|
|
|
|
bool operator!=(const CCharAnimTime& other) const;
|
|
|
|
static CCharAnimTime Infinity() { return CCharAnimTime(kT_Infinity, 1.0f); }
|
|
|
|
private:
|
|
float x0_time;
|
|
EType x4_type;
|
|
};
|
|
CHECK_SIZEOF(CCharAnimTime, 0x8)
|
|
|
|
#endif // _CCHARANIMTIME
|