1818#include < game/CAnimBlendHierarchy.h>
1919#include " Common.h"
2020
21- #define FUNC_CAnimBlendHierarchy_GetAnimSequence 0x4ce8f0
22- #define FUNC_CAnimBlendHierarchy_GetAnimSequences 0x4d1350
21+ #define FUNC_CAnimBlendHierarchy_SetName 0x4CF2D0
22+ #define FUNC_CAnimBlendHierarchy_RemoveAnimSequences 0x4CF8E0
23+ #define FUNC_CAnimBlendHierarchy_RemoveFromUncompressedCache 0x4D42A0
24+ #define FUNC_CAnimBlendHierarchy_RemoveQuaternionFlips 0x4CF4E0
25+ #define FUNC_CAnimBlendHierarchy_CalculateTotalTime 0x4CF2F0
26+ #define FUNC_CAnimBlendHierarchy_GetAnimSequence 0x4ce8f0
27+ #define FUNC_CAnimBlendHierarchy_GetAnimSequences 0x4d1350
2328
2429class CAnimBlendSequence ;
2530
2631class CAnimBlendHierarchySAInterface
2732{
2833public:
34+ // Careful, GetIndex will not work for custom animations
2935 int GetIndex ( void );
36+
3037 unsigned int iHashKey;
31- DWORD * pSequences;
38+ CAnimBlendSequenceSAInterface * pSequences;
3239 unsigned short usNumSequences;
3340 bool bRunningCompressed;
3441 BYTE pad;
@@ -41,10 +48,23 @@ class CAnimBlendHierarchySAInterface
4148class CAnimBlendHierarchySA : public CAnimBlendHierarchy
4249{
4350public:
44- CAnimBlendHierarchySA ( CAnimBlendHierarchySAInterface * pInterface ) { m_pInterface = pInterface; }
45-
46- CAnimBlendHierarchySAInterface * GetInterface ( void ) { return m_pInterface; }
47- int GetAnimBlockID ( void ) { return m_pInterface->iAnimBlockID ; }
51+ CAnimBlendHierarchySA ( CAnimBlendHierarchySAInterface * pInterface ) { m_pInterface = pInterface; }
52+ void Initialize ( void );
53+ void SetName ( const char * szName );
54+ void SetSequences ( CAnimBlendSequenceSAInterface * pSequences ) { m_pInterface->pSequences = pSequences; }
55+ void SetNumSequences ( unsigned short uNumSequences ) { m_pInterface->usNumSequences = uNumSequences; }
56+ void SetRunningCompressed ( bool bCompressed ) { m_pInterface->bRunningCompressed = bCompressed; }
57+ void SetAnimationBlockID ( int iBlockID ) { m_pInterface->iAnimBlockID = iBlockID; }
58+ void RemoveAnimSequences ( void );
59+ void RemoveFromUncompressedCache ( void );
60+ void RemoveQuaternionFlips ( void );
61+ void CalculateTotalTime ( void );
62+ CAnimBlendSequenceSAInterface * GetSequence ( DWORD dwIndex );
63+ CAnimBlendSequenceSAInterface * GetSequences ( void ) { return m_pInterface->pSequences ; }
64+ unsigned short GetNumSequences ( void ) { return m_pInterface->usNumSequences ; }
65+ bool isRunningCompressed ( void ) { return m_pInterface->bRunningCompressed ; }
66+ int GetAnimBlockID ( void ) { return m_pInterface->iAnimBlockID ; }
67+ CAnimBlendHierarchySAInterface * GetInterface ( void ) { return m_pInterface; }
4868
4969protected:
5070 CAnimBlendHierarchySAInterface * m_pInterface;
0 commit comments