2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 21:51:22 +00:00
metaforce/Runtime/Character/CMetaAnimRandom.hpp
Lioncash 67f6666ea1 Runtime: Add more usages of explicit
Prevents error-prone implicit conversions where applicable.

This targets the regular RuntimeCommon target this time around.
2020-03-31 03:53:49 -04:00

27 lines
790 B
C++

#pragma once
#include <memory>
#include <utility>
#include <vector>
#include "Runtime/IOStreams.hpp"
#include "Runtime/Character/IMetaAnim.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:
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 urde