2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-10 21:22:59 +00:00
|
|
|
|
|
|
|
#include "IMetaAnim.hpp"
|
|
|
|
#include "IOStreams.hpp"
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
|
|
|
|
|
|
|
class CMetaAnimRandom : public IMetaAnim {
|
|
|
|
using RandomData = std::vector<std::pair<std::shared_ptr<IMetaAnim>, u32>>;
|
|
|
|
RandomData x4_randomData;
|
|
|
|
static RandomData CreateRandomData(CInputStream& in);
|
2016-04-10 21:22:59 +00:00
|
|
|
|
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CMetaAnimRandom(CInputStream& in);
|
|
|
|
EMetaAnimType GetType() const { return EMetaAnimType::Random; }
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
void GetUniquePrimitives(std::set<CPrimitive>& primsOut) const;
|
|
|
|
std::shared_ptr<CAnimTreeNode> VGetAnimationTree(const CAnimSysContext& animSys,
|
|
|
|
const CMetaAnimTreeBuildOrders& orders) const;
|
2016-04-10 21:22:59 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|