prime/include/MetroidPrime/CAdditiveAnimPlayback.hpp
Luke Street 7ca3a1c0bb Replace int types in Retro code
Retro seemingly avoided using the Dolphin
typedefs in most places, opting to use int/uint
instead. This likely means they didn't use
u8/s8/u16/s16/etc either.


Former-commit-id: 133326ae406a0ebc76f56f8bcb489fda280be2be
2022-10-09 01:37:23 -04:00

39 lines
686 B
C++

#ifndef _CADDITIVEANIMPLAYBACK
#define _CADDITIVEANIMPLAYBACK
#include "types.h"
#include "rstl/rc_ptr.hpp"
class CAnimTreeNode;
class CAdditiveAnimationInfo {
private:
float x0_fadeInDur;
float 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;
float xc_targetWeight;
float x10_curWeight;
bool x14_active;
float x18_weightTimer;
EPlaybackPhase x1c_phase;
bool x20_needsFadeOut;
};
CHECK_SIZEOF(CAdditiveAnimPlayback, 0x24)
#endif // _CADDITIVEANIMPLAYBACK