mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-05-13 14:31:20 +00:00
Continues the override modernization by applying it to the main RuntimeCommon target. Resolves around 1100+ cases where override can be used.
23 lines
699 B
C++
23 lines
699 B
C++
#pragma once
|
|
|
|
#include "IMetaAnim.hpp"
|
|
#include "IOStreams.hpp"
|
|
|
|
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);
|
|
|
|
public:
|
|
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 urde
|