metaforce/Runtime/Character/CAnimTreeSingleChild.cpp

66 lines
3.1 KiB
C++
Raw Permalink Normal View History

#include "Runtime/Character/CAnimTreeSingleChild.hpp"
2016-04-11 03:59:54 +00:00
2021-04-10 08:42:06 +00:00
namespace metaforce {
2016-04-11 03:59:54 +00:00
2017-11-13 06:19:18 +00:00
CAnimTreeSingleChild::CAnimTreeSingleChild(const std::weak_ptr<CAnimTreeNode>& node, std::string_view name)
2018-12-08 05:30:43 +00:00
: CAnimTreeNode(name), x14_child(node.lock()) {}
2016-04-11 03:59:54 +00:00
2018-12-08 05:30:43 +00:00
SAdvancementResults CAnimTreeSingleChild::VAdvanceView(const CCharAnimTime& dt) { return x14_child->VAdvanceView(dt); }
2016-04-11 03:59:54 +00:00
2018-12-08 05:30:43 +00:00
CCharAnimTime CAnimTreeSingleChild::VGetTimeRemaining() const { return x14_child->VGetTimeRemaining(); }
2016-04-11 03:59:54 +00:00
2018-12-08 05:30:43 +00:00
bool CAnimTreeSingleChild::VHasOffset(const CSegId& seg) const { return x14_child->VHasOffset(seg); }
2016-04-11 03:59:54 +00:00
2018-12-08 05:30:43 +00:00
zeus::CVector3f CAnimTreeSingleChild::VGetOffset(const CSegId& seg) const { return x14_child->VGetOffset(seg); }
2016-04-11 03:59:54 +00:00
2018-12-08 05:30:43 +00:00
zeus::CQuaternion CAnimTreeSingleChild::VGetRotation(const CSegId& seg) const { return x14_child->VGetRotation(seg); }
2016-04-11 03:59:54 +00:00
size_t CAnimTreeSingleChild::VGetBoolPOIList(const CCharAnimTime& time, CBoolPOINode* listOut, size_t capacity,
size_t iterator, u32 unk) const {
2018-12-08 05:30:43 +00:00
return x14_child->GetBoolPOIList(time, listOut, capacity, iterator, unk);
2016-04-11 03:59:54 +00:00
}
size_t CAnimTreeSingleChild::VGetInt32POIList(const CCharAnimTime& time, CInt32POINode* listOut, size_t capacity,
size_t iterator, u32 unk) const {
2018-12-08 05:30:43 +00:00
return x14_child->GetInt32POIList(time, listOut, capacity, iterator, unk);
2016-04-11 03:59:54 +00:00
}
size_t CAnimTreeSingleChild::VGetParticlePOIList(const CCharAnimTime& time, CParticlePOINode* listOut, size_t capacity,
size_t iterator, u32 unk) const {
2018-12-08 05:30:43 +00:00
return x14_child->GetParticlePOIList(time, listOut, capacity, iterator, unk);
2016-04-11 03:59:54 +00:00
}
size_t CAnimTreeSingleChild::VGetSoundPOIList(const CCharAnimTime& time, CSoundPOINode* listOut, size_t capacity,
size_t iterator, u32 unk) const {
2018-12-08 05:30:43 +00:00
return x14_child->GetSoundPOIList(time, listOut, capacity, iterator, unk);
2016-04-11 03:59:54 +00:00
}
bool CAnimTreeSingleChild::VGetBoolPOIState(std::string_view name) const { return x14_child->VGetBoolPOIState(name); }
2016-04-11 03:59:54 +00:00
s32 CAnimTreeSingleChild::VGetInt32POIState(std::string_view name) const { return x14_child->VGetInt32POIState(name); }
2016-04-11 03:59:54 +00:00
CParticleData::EParentedMode CAnimTreeSingleChild::VGetParticlePOIState(std::string_view name) const {
2018-12-08 05:30:43 +00:00
return x14_child->VGetParticlePOIState(name);
2016-04-11 03:59:54 +00:00
}
2018-12-08 05:30:43 +00:00
void CAnimTreeSingleChild::VGetSegStatementSet(const CSegIdList& list, CSegStatementSet& setOut) const {
x14_child->VGetSegStatementSet(list, setOut);
2016-04-11 03:59:54 +00:00
}
2018-12-08 05:30:43 +00:00
void CAnimTreeSingleChild::VGetSegStatementSet(const CSegIdList& list, CSegStatementSet& setOut,
const CCharAnimTime& time) const {
x14_child->VGetSegStatementSet(list, setOut, time);
2016-04-11 03:59:54 +00:00
}
2018-12-08 05:30:43 +00:00
void CAnimTreeSingleChild::VSetPhase(float phase) { x14_child->VSetPhase(phase); }
2016-04-11 03:59:54 +00:00
2018-12-08 05:30:43 +00:00
SAdvancementResults CAnimTreeSingleChild::VGetAdvancementResults(const CCharAnimTime& a, const CCharAnimTime& b) const {
return x14_child->VGetAdvancementResults(a, b);
2016-04-11 03:59:54 +00:00
}
2018-12-08 05:30:43 +00:00
u32 CAnimTreeSingleChild::Depth() const { return x14_child->Depth() + 1; }
2016-04-11 03:59:54 +00:00
2018-12-08 05:30:43 +00:00
u32 CAnimTreeSingleChild::VGetNumChildren() const { return x14_child->VGetNumChildren() + 1; }
2016-04-11 03:59:54 +00:00
2021-04-10 08:42:06 +00:00
} // namespace metaforce