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:
|
2022-10-09 05:37:23 +00:00
|
|
|
float x0_fadeInDur;
|
|
|
|
float x4_fadeOutDur;
|
2022-08-14 18:38:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2022-10-09 05:37:23 +00:00
|
|
|
float xc_targetWeight;
|
|
|
|
float x10_curWeight;
|
2022-08-14 18:38:41 +00:00
|
|
|
bool x14_active;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x18_weightTimer;
|
2022-08-14 18:38:41 +00:00
|
|
|
EPlaybackPhase x1c_phase;
|
|
|
|
bool x20_needsFadeOut;
|
|
|
|
};
|
|
|
|
CHECK_SIZEOF(CAdditiveAnimPlayback, 0x24)
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CADDITIVEANIMPLAYBACK
|