mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 10:27:42 +00:00
Add CPOINode family of classes
This commit is contained in:
35
Runtime/Character/IMetaAnim.cpp
Normal file
35
Runtime/Character/IMetaAnim.cpp
Normal file
@@ -0,0 +1,35 @@
|
||||
#include "IMetaAnim.hpp"
|
||||
#include "CCharAnimTime.hpp"
|
||||
#include "IAnimReader.hpp"
|
||||
#include "CBoolPOINode.hpp"
|
||||
|
||||
namespace urde
|
||||
{
|
||||
|
||||
std::shared_ptr<CAnimTreeNode>
|
||||
IMetaAnim::GetAnimationTree(const CAnimSysContext& animSys,
|
||||
const CMetaAnimTreeBuildOrders& orders) const
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void IMetaAnim::AdvanceAnim(IAnimReader& anim, const CCharAnimTime& dt)
|
||||
{
|
||||
CCharAnimTime remDt = dt;
|
||||
while (remDt > CCharAnimTime())
|
||||
{
|
||||
SAdvancementResults res = anim.VAdvanceView(remDt);
|
||||
remDt = res.x0_remTime;
|
||||
}
|
||||
}
|
||||
|
||||
CCharAnimTime IMetaAnim::GetTime(const CPreAdvanceIndicator& ind, const IAnimReader& anim)
|
||||
{
|
||||
if (ind.IsTime())
|
||||
return ind.GetTime();
|
||||
|
||||
CBoolPOINode nodes[64];
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user