summaryrefslogblamecommitdiffstats
path: root/src/animation/AnimBlendHierarchy.h
blob: 40d2731b10d09b8a08188c089467f86cca351fe8 (plain) (tree)
1
2
3
4
5
6
7
8



                      



                                       








                                      
                         










                                             
                                              
  
 
                                        
#pragma once

#include "templates.h"

#ifdef MoveMemory
#undef MoveMemory	// windows shit
#endif

class CAnimBlendSequence;

// A collection of sequences
class CAnimBlendHierarchy
{
public:
	char name[24];
	CAnimBlendSequence *sequences;
	int16 numSequences;
	int16 compressed;
	float totalLength;
	CLink<CAnimBlendHierarchy*> *linkPtr;

	CAnimBlendHierarchy(void);
	void Shutdown(void);
	void SetName(char *name);
	void CalcTotalTime(void);
	void RemoveQuaternionFlips(void);
	void RemoveAnimSequences(void);
	void Uncompress(void);
	void RemoveUncompressedData(void);
	void MoveMemory(bool onlyone = false);
};

VALIDATE_SIZE(CAnimBlendHierarchy, 0x28);