Continue work on CActor::UpdateAnimation; lots of headers n stuff

This commit is contained in:
2022-08-14 14:38:41 -04:00
parent 7c92358bf6
commit 85284f7640
43 changed files with 1190 additions and 148 deletions

View File

@@ -17,6 +17,14 @@
class CAnimData;
class CModel;
// TODO move
#include "Kyoto/Math/CQuaternion.hpp"
struct SAdvancementDeltas {
CVector3f x0_posDelta;
CQuaternion xc_rotDelta;
};
CHECK_SIZEOF(SAdvancementDeltas, 0x1c)
class CModelData {
public:
bool IsStaticModel() const { return xc_animData.get() == nullptr && !x1c_normalModel; }
@@ -30,7 +38,7 @@ public:
SAdvancementDeltas AdvanceAnimation(float dt, CStateManager& mgr, TAreaId aid, bool advTree);
void AdvanceParticles(const CTransform4f& xf, float dt, CStateManager& mgr);
rstl::auto_ptr< CAnimData >& GetAnimData() { return xc_animData; }
CAnimData* GetAnimationData() const { return xc_animData.get(); }
void SetXRayModel(const rstl::pair< CAssetId, CAssetId >& assets);
void SetInfraModel(const rstl::pair< CAssetId, CAssetId >& assets);