2015-07-26 21:39:49 +00:00
|
|
|
#ifndef CANIMSET_H
|
|
|
|
#define CANIMSET_H
|
|
|
|
|
|
|
|
#include <Common/types.h>
|
|
|
|
#include <Core/CToken.h>
|
|
|
|
#include <vector>
|
|
|
|
#include "model/CModel.h"
|
|
|
|
#include "CResource.h"
|
|
|
|
|
|
|
|
// will expand later! this is where animation support will come in
|
|
|
|
class CAnimSet : public CResource
|
|
|
|
{
|
|
|
|
friend class CAnimSetLoader;
|
|
|
|
|
|
|
|
struct SNode
|
|
|
|
{
|
2015-11-24 06:08:31 +00:00
|
|
|
TString name;
|
2015-07-26 21:39:49 +00:00
|
|
|
CModel *model;
|
|
|
|
u32 skinID;
|
|
|
|
u32 skelID;
|
|
|
|
CToken ModelToken;
|
|
|
|
|
|
|
|
SNode() { model = nullptr; }
|
|
|
|
};
|
|
|
|
std::vector<SNode> nodes;
|
|
|
|
|
|
|
|
public:
|
|
|
|
CAnimSet();
|
|
|
|
~CAnimSet();
|
|
|
|
EResType Type();
|
|
|
|
|
|
|
|
u32 getNodeCount();
|
2015-11-24 06:08:31 +00:00
|
|
|
TString getNodeName(u32 node);
|
2015-07-26 21:39:49 +00:00
|
|
|
CModel* getNodeModel(u32 node);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CCHARACTERSET_H
|