2016-04-10 21:22:59 +00:00
|
|
|
#include "CMetaAnimSequence.hpp"
|
2016-04-11 03:59:54 +00:00
|
|
|
#include "CMetaAnimFactory.hpp"
|
2016-04-10 21:22:59 +00:00
|
|
|
|
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
2016-04-11 03:59:54 +00:00
|
|
|
std::vector<std::shared_ptr<IMetaAnim>> CMetaAnimSequence::CreateSequence(CInputStream& in)
|
2016-04-10 21:22:59 +00:00
|
|
|
{
|
2016-04-11 03:59:54 +00:00
|
|
|
std::vector<std::shared_ptr<IMetaAnim>> ret;
|
|
|
|
u32 seqCount = in.readUint32Big();
|
|
|
|
ret.reserve(seqCount);
|
|
|
|
|
|
|
|
for (u32 i=0 ; i<seqCount ; ++i)
|
|
|
|
ret.push_back(std::move(CMetaAnimFactory::CreateMetaAnim(in)));
|
|
|
|
|
|
|
|
return ret;
|
2016-04-10 21:22:59 +00:00
|
|
|
}
|
|
|
|
|
2016-04-11 03:59:54 +00:00
|
|
|
CMetaAnimSequence::CMetaAnimSequence(CInputStream& in)
|
|
|
|
: x4_sequence(CreateSequence(in)) {}
|
|
|
|
|
2016-04-10 21:22:59 +00:00
|
|
|
std::shared_ptr<CAnimTreeNode>
|
|
|
|
CMetaAnimSequence::GetAnimationTree(const CAnimSysContext& animSys,
|
|
|
|
const CMetaAnimTreeBuildOrders& orders) const
|
|
|
|
{
|
2016-05-21 03:02:09 +00:00
|
|
|
return {};
|
2016-04-10 21:22:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void CMetaAnimSequence::GetUniquePrimitives(std::set<CPrimitive>& primsOut) const
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
std::shared_ptr<CAnimTreeNode>
|
|
|
|
CMetaAnimSequence::VGetAnimationTree(const CAnimSysContext& animSys,
|
|
|
|
const CMetaAnimTreeBuildOrders& orders) const
|
|
|
|
{
|
2016-05-21 03:02:09 +00:00
|
|
|
return {};
|
2016-04-10 21:22:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|