2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CADDITIVEANIMPLAYBACK
|
|
|
|
#define _CADDITIVEANIMPLAYBACK
|
2022-08-14 18:38:41 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "rstl/rc_ptr.hpp"
|
|
|
|
|
|
|
|
class CAnimTreeNode;
|
|
|
|
|
|
|
|
class CAdditiveAnimationInfo {
|
|
|
|
private:
|
|
|
|
f32 x0_fadeInDur;
|
|
|
|
f32 x4_fadeOutDur;
|
|
|
|
};
|
|
|
|
|
|
|
|
class CAdditiveAnimPlayback {
|
|
|
|
public:
|
|
|
|
enum EPlaybackPhase {
|
|
|
|
kPP_None,
|
|
|
|
kPP_FadingIn,
|
|
|
|
kPP_FadingOut,
|
|
|
|
kPP_FadedIn,
|
|
|
|
kPP_FadedOut,
|
|
|
|
};
|
|
|
|
|
|
|
|
private:
|
|
|
|
CAdditiveAnimationInfo x0_info;
|
|
|
|
rstl::ncrc_ptr< CAnimTreeNode > x8_anim;
|
|
|
|
f32 xc_targetWeight;
|
|
|
|
f32 x10_curWeight;
|
|
|
|
bool x14_active;
|
|
|
|
f32 x18_weightTimer;
|
|
|
|
EPlaybackPhase x1c_phase;
|
|
|
|
bool x20_needsFadeOut;
|
|
|
|
};
|
|
|
|
CHECK_SIZEOF(CAdditiveAnimPlayback, 0x24)
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CADDITIVEANIMPLAYBACK
|