metaforce/Runtime/Character/CAnimTreeSingleChild.hpp

46 lines
2.0 KiB
C++
Raw Normal View History

2018-10-07 03:42:33 +00:00
#pragma once
2016-04-10 21:22:59 +00:00
#include <memory>
#include "Runtime/GCNTypes.hpp"
#include "Runtime/rstl.hpp"
#include "Runtime/Character/CAnimTreeNode.hpp"
2016-04-11 03:59:54 +00:00
2018-12-08 05:30:43 +00:00
namespace urde {
2016-04-10 21:22:59 +00:00
2018-12-08 05:30:43 +00:00
class CAnimTreeSingleChild : public CAnimTreeNode {
2016-08-27 21:16:44 +00:00
protected:
2018-12-08 05:30:43 +00:00
std::shared_ptr<CAnimTreeNode> x14_child;
2016-04-11 03:59:54 +00:00
public:
2018-12-08 05:30:43 +00:00
CAnimTreeSingleChild(const std::weak_ptr<CAnimTreeNode>& node, std::string_view name);
2016-04-11 03:59:54 +00:00
SAdvancementResults VAdvanceView(const CCharAnimTime& dt) override;
CCharAnimTime VGetTimeRemaining() const override;
bool VHasOffset(const CSegId& seg) const override;
zeus::CVector3f VGetOffset(const CSegId& seg) const override;
zeus::CQuaternion VGetRotation(const CSegId& seg) const override;
u32 VGetBoolPOIList(const CCharAnimTime& time, CBoolPOINode* listOut, u32 capacity, u32 iterator, u32) const override;
u32 VGetInt32POIList(const CCharAnimTime& time, CInt32POINode* listOut, u32 capacity, u32 iterator,
u32) const override;
u32 VGetParticlePOIList(const CCharAnimTime& time, CParticlePOINode* listOut, u32 capacity, u32 iterator,
u32) const override;
u32 VGetSoundPOIList(const CCharAnimTime& time, CSoundPOINode* listOut, u32 capacity, u32 iterator,
u32) const override;
bool VGetBoolPOIState(const char* name) const override;
s32 VGetInt32POIState(const char* name) const override;
CParticleData::EParentedMode VGetParticlePOIState(const char* name) const override;
void VGetSegStatementSet(const CSegIdList& list, CSegStatementSet& setOut) const override;
void VGetSegStatementSet(const CSegIdList& list, CSegStatementSet& setOut, const CCharAnimTime& time) const override;
void VSetPhase(float) override;
SAdvancementResults VGetAdvancementResults(const CCharAnimTime& a, const CCharAnimTime& b) const override;
u32 Depth() const override;
u32 VGetNumChildren() const override;
2018-12-08 05:30:43 +00:00
void VGetWeightedReaders(rstl::reserved_vector<std::pair<float, std::weak_ptr<IAnimReader>>, 16>& out,
float w) const override {
2018-12-08 05:30:43 +00:00
x14_child->VGetWeightedReaders(out, w);
}
2016-04-10 21:22:59 +00:00
};
2018-12-08 05:30:43 +00:00
} // namespace urde