2019-06-11 06:59:28 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "templates.h"
|
|
|
|
|
2020-12-01 16:42:18 +00:00
|
|
|
#ifdef MoveMemory
|
|
|
|
#undef MoveMemory // windows shit
|
|
|
|
#endif
|
|
|
|
|
2019-06-11 06:59:28 +00:00
|
|
|
class CAnimBlendSequence;
|
|
|
|
|
|
|
|
// A collection of sequences
|
|
|
|
class CAnimBlendHierarchy
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
char name[24];
|
|
|
|
CAnimBlendSequence *sequences;
|
|
|
|
int16 numSequences;
|
2020-12-18 22:46:51 +00:00
|
|
|
bool compressed;
|
|
|
|
bool keepCompressed;
|
2019-06-11 06:59:28 +00:00
|
|
|
float totalLength;
|
|
|
|
CLink<CAnimBlendHierarchy*> *linkPtr;
|
|
|
|
|
|
|
|
CAnimBlendHierarchy(void);
|
|
|
|
void Shutdown(void);
|
|
|
|
void SetName(char *name);
|
|
|
|
void CalcTotalTime(void);
|
2020-05-08 13:59:57 +00:00
|
|
|
void CalcTotalTimeCompressed(void);
|
2019-06-11 06:59:28 +00:00
|
|
|
void RemoveQuaternionFlips(void);
|
|
|
|
void RemoveAnimSequences(void);
|
|
|
|
void Uncompress(void);
|
|
|
|
void RemoveUncompressedData(void);
|
2020-12-01 16:42:18 +00:00
|
|
|
void MoveMemory(bool onlyone = false);
|
2020-08-24 18:52:16 +00:00
|
|
|
bool IsCompressed() { return !!compressed; };
|
2019-06-11 06:59:28 +00:00
|
|
|
};
|
2020-05-10 13:54:37 +00:00
|
|
|
|
2020-05-10 15:49:33 +00:00
|
|
|
VALIDATE_SIZE(CAnimBlendHierarchy, 0x28);
|