metaforce/Runtime/Character/CAnimTreeSequence.hpp

48 lines
1.9 KiB
C++
Raw Normal View History

2016-04-13 06:07:23 +00:00
#ifndef __URDE_CANIMTREESEQUENCE_HPP__
#define __URDE_CANIMTREESEQUENCE_HPP__
2016-04-10 21:22:59 +00:00
2016-08-27 21:16:44 +00:00
#include "CAnimTreeSingleChild.hpp"
#include "CAnimSysContext.hpp"
#include "CSequenceHelper.hpp"
2016-04-10 21:22:59 +00:00
namespace urde
{
2016-08-27 21:16:44 +00:00
class IMetaAnim;
class CTransitionDatabaseGame;
2016-04-10 21:22:59 +00:00
2016-08-27 21:16:44 +00:00
class CAnimTreeSequence : public CAnimTreeSingleChild
2016-04-10 21:22:59 +00:00
{
2018-01-30 01:04:01 +00:00
CAnimSysContext x18_animCtx;
std::vector<std::shared_ptr<IMetaAnim>> x28_sequence;
2016-08-27 21:16:44 +00:00
u32 x38_curIdx = 0;
CSequenceFundamentals x3c_fundamentals;
CCharAnimTime x94_curTime;
public:
CAnimTreeSequence(const std::vector<std::shared_ptr<IMetaAnim>>& seq,
const CAnimSysContext& animSys,
2017-11-13 06:19:18 +00:00
std::string_view name);
2016-08-27 21:16:44 +00:00
CAnimTreeSequence(const std::shared_ptr<CAnimTreeNode>& curNode,
const std::vector<std::shared_ptr<IMetaAnim>>& metaAnims,
const CAnimSysContext& animSys,
2017-11-13 06:19:18 +00:00
std::string_view name,
2016-08-27 21:16:44 +00:00
const CSequenceFundamentals& fundamentals,
const CCharAnimTime& time);
CAnimTreeEffectiveContribution VGetContributionOfHighestInfluence() const;
std::shared_ptr<IAnimReader> VGetBestUnblendedChild() const;
2018-01-30 01:04:01 +00:00
bool VSupportsReverseView() const { return false; }
2016-08-27 21:16:44 +00:00
2018-01-30 01:04:01 +00:00
SAdvancementResults VAdvanceView(const CCharAnimTime& dt);
2016-08-27 21:16:44 +00:00
CCharAnimTime VGetTimeRemaining() const;
CSteadyStateAnimInfo VGetSteadyStateAnimInfo() const;
u32 VGetBoolPOIList(const CCharAnimTime& time, CBoolPOINode* listOut, u32 capacity, u32 iterator, u32) const;
u32 VGetInt32POIList(const CCharAnimTime& time, CInt32POINode* listOut, u32 capacity, u32 iterator, u32) const;
u32 VGetParticlePOIList(const CCharAnimTime& time, CParticlePOINode* listOut, u32 capacity, u32 iterator, u32) const;
u32 VGetSoundPOIList(const CCharAnimTime& time, CSoundPOINode* listOut, u32 capacity, u32 iterator, u32) const;
2017-03-01 06:02:54 +00:00
std::unique_ptr<IAnimReader> VClone() const;
2016-04-10 21:22:59 +00:00
};
}
2016-04-13 06:07:23 +00:00
#endif // __URDE_CANIMTREESEQUENCE_HPP__