2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2016-09-14 05:45:46 +00:00
|
|
|
#include "CAnimTreeSingleChild.hpp"
|
2017-07-02 10:18:38 +00:00
|
|
|
#include "CTimeScaleFunctions.hpp"
|
2016-09-14 05:45:46 +00:00
|
|
|
|
2016-04-10 21:22:59 +00:00
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
2016-09-14 05:45:46 +00:00
|
|
|
class CAnimTreeTimeScale : public CAnimTreeSingleChild
|
2016-04-10 21:22:59 +00:00
|
|
|
{
|
2018-01-30 01:04:01 +00:00
|
|
|
std::unique_ptr<IVaryingAnimationTimeScale> x18_timeScale;
|
|
|
|
CCharAnimTime x20_curAccelTime;
|
|
|
|
CCharAnimTime x28_targetAccelTime;
|
|
|
|
CCharAnimTime x30_initialTime;
|
2016-09-14 05:45:46 +00:00
|
|
|
public:
|
2018-01-30 01:04:01 +00:00
|
|
|
CAnimTreeTimeScale(const std::weak_ptr<CAnimTreeNode>& node, float timeScale, std::string_view name);
|
|
|
|
CAnimTreeTimeScale(const std::weak_ptr<CAnimTreeNode>& node,
|
|
|
|
std::unique_ptr<IVaryingAnimationTimeScale>&& timeScale,
|
|
|
|
const CCharAnimTime& time, std::string_view name);
|
2016-09-14 05:45:46 +00:00
|
|
|
|
|
|
|
static std::string CreatePrimitiveName(const std::weak_ptr<CAnimTreeNode>&, float, const CCharAnimTime&, float);
|
|
|
|
|
|
|
|
CCharAnimTime GetRealLifeTime(const CCharAnimTime&) const;
|
|
|
|
void VSetPhase(float);
|
2018-01-04 04:17:44 +00:00
|
|
|
std::experimental::optional<std::unique_ptr<IAnimReader>> VSimplified();
|
2018-01-30 01:04:01 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
bool VGetBoolPOIState(const char* name) const;
|
|
|
|
s32 VGetInt32POIState(const char* name) const;
|
|
|
|
CParticleData::EParentedMode VGetParticlePOIState(const char* name) const;
|
|
|
|
|
|
|
|
CAnimTreeEffectiveContribution VGetContributionOfHighestInfluence() const;
|
|
|
|
std::shared_ptr<IAnimReader> VGetBestUnblendedChild() const;
|
|
|
|
std::unique_ptr<IAnimReader> VClone() const;
|
|
|
|
CSteadyStateAnimInfo VGetSteadyStateAnimInfo() const;
|
|
|
|
CCharAnimTime VGetTimeRemaining() const;
|
|
|
|
SAdvancementResults VAdvanceView(const CCharAnimTime& dt);
|
2016-04-10 21:22:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|