2015-07-26 21:39:49 +00:00
|
|
|
#include "CAnimSet.h"
|
|
|
|
#include <Core/CResCache.h>
|
|
|
|
|
|
|
|
CAnimSet::CAnimSet() : CResource()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
CAnimSet::~CAnimSet()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
EResType CAnimSet::Type()
|
|
|
|
{
|
2015-09-18 05:53:53 +00:00
|
|
|
return eAnimSet;
|
2015-07-26 21:39:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
u32 CAnimSet::getNodeCount()
|
|
|
|
{
|
|
|
|
return nodes.size();
|
|
|
|
}
|
|
|
|
|
2015-11-24 06:08:31 +00:00
|
|
|
TString CAnimSet::getNodeName(u32 node)
|
2015-07-26 21:39:49 +00:00
|
|
|
{
|
|
|
|
if (node >= nodes.size())
|
|
|
|
return nodes[0].name;
|
|
|
|
else
|
|
|
|
return nodes[node].name;
|
|
|
|
}
|
|
|
|
|
|
|
|
CModel* CAnimSet::getNodeModel(u32 node)
|
|
|
|
{
|
|
|
|
if (node >= nodes.size())
|
|
|
|
return nodes[0].model;
|
|
|
|
else
|
|
|
|
return nodes[node].model;
|
|
|
|
}
|