mirror of https://github.com/AxioDL/metaforce.git
27 lines
808 B
C++
27 lines
808 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <utility>
|
|
#include <vector>
|
|
|
|
#include "Runtime/Streams/IOStreams.hpp"
|
|
#include "Runtime/Character/IMetaAnim.hpp"
|
|
|
|
namespace metaforce {
|
|
|
|
class CMetaAnimRandom : public IMetaAnim {
|
|
using RandomData = std::vector<std::pair<std::shared_ptr<IMetaAnim>, u32>>;
|
|
RandomData x4_randomData;
|
|
static RandomData CreateRandomData(CInputStream& in);
|
|
|
|
public:
|
|
explicit CMetaAnimRandom(CInputStream& in);
|
|
EMetaAnimType GetType() const override { return EMetaAnimType::Random; }
|
|
|
|
void GetUniquePrimitives(std::set<CPrimitive>& primsOut) const override;
|
|
std::shared_ptr<CAnimTreeNode> VGetAnimationTree(const CAnimSysContext& animSys,
|
|
const CMetaAnimTreeBuildOrders& orders) const override;
|
|
};
|
|
|
|
} // namespace metaforce
|