prime/include/MetroidPrime/CAdditiveAnimPlayback.hpp

38 lines
657 B
C++
Raw Normal View History

#ifndef _CADDITIVEANIMPLAYBACK_HPP
#define _CADDITIVEANIMPLAYBACK_HPP
#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)
#endif