prime/include/MetroidPrime/CAnimPlaybackParms.hpp

54 lines
1.3 KiB
C++

#ifndef _CANIMPLAYBACKPARMS
#define _CANIMPLAYBACKPARMS
#include "types.h"
class CQuaternion;
class CTransform4f;
class CVector3f;
class CAnimPlaybackParms {
private:
int x0_animA;
int x4_animB;
float x8_blendWeight;
bool xc_animating;
int x10_;
const CVector3f* x14_targetPos;
bool x18_useLocator;
const CQuaternion* x1c_deltaOrient;
const CTransform4f* x20_objectXf;
const CVector3f* x24_objectScale;
public:
CAnimPlaybackParms(int animA, int animB, float blendWeight, bool animating)
: x0_animA(animA)
, x4_animB(animB)
, x8_blendWeight(blendWeight)
, xc_animating(animating)
, x10_(0)
, x14_targetPos(nullptr)
, x18_useLocator(false)
, x1c_deltaOrient(nullptr)
, x20_objectXf(nullptr)
, x24_objectScale(nullptr) {}
CAnimPlaybackParms(int anim, const CQuaternion* deltaOrient, const CVector3f* targetPos,
const CTransform4f* xf, const CVector3f* scale, bool useLocator)
: x0_animA(anim)
, x4_animB(-1)
, x8_blendWeight(1.f)
, xc_animating(true)
, x10_(0)
, x14_targetPos(targetPos)
, x18_useLocator(useLocator)
, x1c_deltaOrient(deltaOrient)
, x20_objectXf(xf)
, x24_objectScale(scale) {}
int GetAnimationId() const { return x0_animA; }
};
CHECK_SIZEOF(CAnimPlaybackParms, 0x28)
#endif // _CANIMPLAYBACKPARMS