2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2016-04-11 03:59:54 +00:00
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
#include "CAnimTreeTweenBase.hpp"
|
|
|
|
|
2016-04-10 21:22:59 +00:00
|
|
|
namespace urde
|
|
|
|
{
|
|
|
|
|
2016-04-11 03:59:54 +00:00
|
|
|
class CAnimTreeTransition : public CAnimTreeTweenBase
|
2016-04-10 21:22:59 +00:00
|
|
|
{
|
2016-09-10 04:50:00 +00:00
|
|
|
protected:
|
2018-01-04 04:17:44 +00:00
|
|
|
CCharAnimTime x24_transDur;
|
|
|
|
CCharAnimTime x2c_timeInTrans;
|
|
|
|
bool x34_runA;
|
|
|
|
bool x35_loopA;
|
2018-01-05 03:02:30 +00:00
|
|
|
bool x36_initialized = false;
|
2018-01-04 04:17:44 +00:00
|
|
|
SAdvancementResults AdvanceViewForTransitionalPeriod(const CCharAnimTime& time);
|
2016-04-11 03:59:54 +00:00
|
|
|
public:
|
2018-01-30 01:04:01 +00:00
|
|
|
static std::string CreatePrimitiveName(const std::weak_ptr<CAnimTreeNode>&,
|
|
|
|
const std::weak_ptr<CAnimTreeNode>&,
|
2016-09-10 04:50:00 +00:00
|
|
|
float);
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2018-01-04 04:17:44 +00:00
|
|
|
CAnimTreeTransition(bool b1, const std::weak_ptr<CAnimTreeNode>& a,
|
|
|
|
const std::weak_ptr<CAnimTreeNode>& b, const CCharAnimTime& transDur,
|
|
|
|
const CCharAnimTime& timeInTrans, bool runA, bool loopA, int flags,
|
2018-01-05 03:02:30 +00:00
|
|
|
std::string_view name, bool initialized);
|
2018-01-04 04:17:44 +00:00
|
|
|
CAnimTreeTransition(bool b1, const std::weak_ptr<CAnimTreeNode>& a,
|
|
|
|
const std::weak_ptr<CAnimTreeNode>& b,
|
|
|
|
const CCharAnimTime& transDur, bool runA,
|
|
|
|
int flags, std::string_view name);
|
2016-09-11 18:40:33 +00:00
|
|
|
std::shared_ptr<IAnimReader> VGetBestUnblendedChild() const;
|
2016-09-10 04:50:00 +00:00
|
|
|
CCharAnimTime VGetTimeRemaining() const;
|
|
|
|
CSteadyStateAnimInfo VGetSteadyStateAnimInfo() const;
|
2017-03-01 06:02:54 +00:00
|
|
|
std::unique_ptr<IAnimReader> VClone() const;
|
2018-01-04 04:17:44 +00:00
|
|
|
std::experimental::optional<std::unique_ptr<IAnimReader>> VSimplified();
|
2018-01-05 03:02:30 +00:00
|
|
|
std::experimental::optional<std::unique_ptr<IAnimReader>> VReverseSimplified();
|
2018-01-04 04:17:44 +00:00
|
|
|
SAdvancementResults VAdvanceView(const CCharAnimTime& a);
|
2016-09-10 04:50:00 +00:00
|
|
|
void SetBlendingWeight(float w);
|
|
|
|
float VGetBlendingWeight() const;
|
|
|
|
};
|
2016-04-10 21:22:59 +00:00
|
|
|
}
|
|
|
|
|