2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <utility>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "Runtime/IOStreams.hpp"
|
|
|
|
#include "Runtime/Character/IMetaAnim.hpp"
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2018-12-08 05:30:43 +00:00
|
|
|
|
|
|
|
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:
|
2020-03-31 03:52:22 +00:00
|
|
|
explicit CMetaAnimRandom(CInputStream& in);
|
2019-08-09 19:46:49 +00:00
|
|
|
EMetaAnimType GetType() const override { return EMetaAnimType::Random; }
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2019-08-09 19:46:49 +00:00
|
|
|
void GetUniquePrimitives(std::set<CPrimitive>& primsOut) const override;
|
2018-12-08 05:30:43 +00:00
|
|
|
std::shared_ptr<CAnimTreeNode> VGetAnimationTree(const CAnimSysContext& animSys,
|
2019-08-09 19:46:49 +00:00
|
|
|
const CMetaAnimTreeBuildOrders& orders) const override;
|
2016-04-10 21:22:59 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|