2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
#include "Runtime/GCNTypes.hpp"
|
|
|
|
#include "Runtime/Character/CAnimSysContext.hpp"
|
|
|
|
#include "Runtime/Character/CAnimTreeSingleChild.hpp"
|
|
|
|
#include "Runtime/Character/CSequenceHelper.hpp"
|
2018-01-30 01:04:01 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2018-12-08 05:30:43 +00:00
|
|
|
|
|
|
|
class CAnimTreeLoopIn : public CAnimTreeSingleChild {
|
|
|
|
std::shared_ptr<CAnimTreeNode> x18_nextAnim;
|
|
|
|
bool x1c_didLoopIn = false;
|
|
|
|
CAnimSysContext x20_animCtx;
|
|
|
|
CSequenceFundamentals x30_fundamentals;
|
|
|
|
CCharAnimTime x88_curTime;
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2018-01-30 01:04:01 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
static std::string CreatePrimitiveName(const std::weak_ptr<CAnimTreeNode>& a, const std::weak_ptr<CAnimTreeNode>& b,
|
|
|
|
const std::weak_ptr<CAnimTreeNode>& c);
|
|
|
|
CAnimTreeLoopIn(const std::weak_ptr<CAnimTreeNode>& a, const std::weak_ptr<CAnimTreeNode>& b,
|
|
|
|
const std::weak_ptr<CAnimTreeNode>& c, const CAnimSysContext& animCtx, std::string_view name);
|
|
|
|
CAnimTreeLoopIn(const std::weak_ptr<CAnimTreeNode>& a, const std::weak_ptr<CAnimTreeNode>& b, bool didLoopIn,
|
2020-03-09 15:31:51 +00:00
|
|
|
CAnimSysContext animCtx, std::string_view name, CSequenceFundamentals fundamentals,
|
2018-12-08 05:30:43 +00:00
|
|
|
const CCharAnimTime& time);
|
2019-08-09 19:46:49 +00:00
|
|
|
CAnimTreeEffectiveContribution VGetContributionOfHighestInfluence() const override;
|
2018-12-08 05:30:43 +00:00
|
|
|
bool VSupportsReverseView() const { return false; }
|
2019-08-09 19:46:49 +00:00
|
|
|
std::optional<std::unique_ptr<IAnimReader>> VSimplified() override;
|
|
|
|
std::shared_ptr<IAnimReader> VGetBestUnblendedChild() const override;
|
|
|
|
std::unique_ptr<IAnimReader> VClone() const override;
|
2021-06-07 19:29:18 +00:00
|
|
|
size_t VGetBoolPOIList(const CCharAnimTime& time, CBoolPOINode* listOut, size_t capacity, size_t iterator,
|
|
|
|
u32) const override;
|
2020-04-10 21:18:09 +00:00
|
|
|
size_t VGetInt32POIList(const CCharAnimTime& time, CInt32POINode* listOut, size_t capacity, size_t iterator,
|
|
|
|
u32) const override;
|
|
|
|
size_t VGetParticlePOIList(const CCharAnimTime& time, CParticlePOINode* listOut, size_t capacity, size_t iterator,
|
|
|
|
u32) const override;
|
|
|
|
size_t VGetSoundPOIList(const CCharAnimTime& time, CSoundPOINode* listOut, size_t capacity, size_t iterator,
|
2019-08-09 19:46:49 +00:00
|
|
|
u32) const override;
|
|
|
|
CSteadyStateAnimInfo VGetSteadyStateAnimInfo() const override;
|
|
|
|
CCharAnimTime VGetTimeRemaining() const override;
|
|
|
|
SAdvancementResults VAdvanceView(const CCharAnimTime& dt) override;
|
2016-04-10 21:22:59 +00:00
|
|
|
};
|
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|