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 <vector>
|
|
|
|
|
|
|
|
#include "Runtime/GCNTypes.hpp"
|
|
|
|
#include "Runtime/Character/CAnimSysContext.hpp"
|
|
|
|
#include "Runtime/Character/CAnimTreeSingleChild.hpp"
|
|
|
|
#include "Runtime/Character/CSequenceHelper.hpp"
|
2016-08-27 21:16:44 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
2016-08-27 21:16:44 +00:00
|
|
|
class IMetaAnim;
|
|
|
|
class CTransitionDatabaseGame;
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CAnimTreeSequence : public CAnimTreeSingleChild {
|
|
|
|
CAnimSysContext x18_animCtx;
|
|
|
|
std::vector<std::shared_ptr<IMetaAnim>> x28_sequence;
|
|
|
|
u32 x38_curIdx = 0;
|
|
|
|
CSequenceFundamentals x3c_fundamentals;
|
|
|
|
CCharAnimTime x94_curTime;
|
|
|
|
|
2016-08-27 21:16:44 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
CAnimTreeSequence(const std::vector<std::shared_ptr<IMetaAnim>>& seq, const CAnimSysContext& animSys,
|
|
|
|
std::string_view name);
|
|
|
|
CAnimTreeSequence(const std::shared_ptr<CAnimTreeNode>& curNode,
|
|
|
|
const std::vector<std::shared_ptr<IMetaAnim>>& metaAnims, const CAnimSysContext& animSys,
|
|
|
|
std::string_view name, const CSequenceFundamentals& fundamentals, const CCharAnimTime& time);
|
2016-08-27 21:16:44 +00:00
|
|
|
|
2019-08-09 19:46:49 +00:00
|
|
|
CAnimTreeEffectiveContribution VGetContributionOfHighestInfluence() const override;
|
|
|
|
std::shared_ptr<IAnimReader> VGetBestUnblendedChild() const override;
|
2018-12-08 05:30:43 +00:00
|
|
|
bool VSupportsReverseView() const { return false; }
|
2016-08-27 21:16:44 +00:00
|
|
|
|
2019-08-09 19:46:49 +00:00
|
|
|
SAdvancementResults VAdvanceView(const CCharAnimTime& dt) override;
|
|
|
|
CCharAnimTime VGetTimeRemaining() const override;
|
|
|
|
CSteadyStateAnimInfo VGetSteadyStateAnimInfo() 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;
|
|
|
|
std::unique_ptr<IAnimReader> VClone() const override;
|
2016-04-10 21:22:59 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|