2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 07:47:42 +00:00

Additional animation tree imps

This commit is contained in:
Jack Andersen
2016-08-27 11:16:44 -10:00
parent f76324a029
commit b25e5ad014
34 changed files with 467 additions and 85 deletions

View File

@@ -10,11 +10,32 @@ CAnimTreeAnimReaderContainer::CAnimTreeAnimReaderContainer(const std::string& na
{
}
u32 CAnimTreeAnimReaderContainer::Depth() const
{
return 1;
}
CAnimTreeEffectiveContribution CAnimTreeAnimReaderContainer::VGetContributionOfHighestInfluence() const
{
return {1.f, x4_name, VGetSteadyStateAnimInfo(), VGetTimeRemaining(), x1c_animDbIdx};
}
u32 CAnimTreeAnimReaderContainer::VGetNumChildren() const
{
return 0;
}
std::shared_ptr<IAnimReader> CAnimTreeAnimReaderContainer::VGetBestUnblendedChild() const
{
return {};
}
void CAnimTreeAnimReaderContainer::VGetWeightedReaders
(std::vector<std::pair<float, std::weak_ptr<IAnimReader>>>& out, float w) const
{
out.push_back(std::make_pair(w, x14_reader));
}
SAdvancementResults CAnimTreeAnimReaderContainer::VAdvanceView(const CCharAnimTime& dt)
{
return x14_reader->VAdvanceView(dt);
@@ -101,6 +122,11 @@ std::shared_ptr<IAnimReader> CAnimTreeAnimReaderContainer::VClone() const
return ret;
}
std::shared_ptr<IAnimReader> CAnimTreeAnimReaderContainer::VSimplified()
{
return {};
}
void CAnimTreeAnimReaderContainer::VSetPhase(float ph)
{
x14_reader->VSetPhase(ph);