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_view>
|
|
|
|
|
|
|
|
#include "Runtime/RetroTypes.hpp"
|
|
|
|
#include "Runtime/Character/CAnimTreeTweenBase.hpp"
|
2016-04-11 03:59:54 +00:00
|
|
|
|
2021-04-10 08:42:06 +00:00
|
|
|
namespace metaforce {
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
class CAnimTreeTransition : public CAnimTreeTweenBase {
|
2016-09-10 04:50:00 +00:00
|
|
|
protected:
|
2018-12-08 05:30:43 +00:00
|
|
|
CCharAnimTime x24_transDur;
|
|
|
|
CCharAnimTime x2c_timeInTrans;
|
|
|
|
bool x34_runA;
|
|
|
|
bool x35_loopA;
|
|
|
|
bool x36_initialized = false;
|
|
|
|
SAdvancementResults AdvanceViewForTransitionalPeriod(const CCharAnimTime& time);
|
|
|
|
|
2016-04-11 03:59:54 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
static std::string CreatePrimitiveName(const std::weak_ptr<CAnimTreeNode>&, const std::weak_ptr<CAnimTreeNode>&,
|
|
|
|
float);
|
2016-04-10 21:22:59 +00:00
|
|
|
|
2018-12-08 05:30:43 +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,
|
|
|
|
std::string_view name, bool initialized);
|
|
|
|
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);
|
2019-08-09 19:46:49 +00:00
|
|
|
std::shared_ptr<IAnimReader> VGetBestUnblendedChild() const override;
|
|
|
|
CCharAnimTime VGetTimeRemaining() const override;
|
|
|
|
CSteadyStateAnimInfo VGetSteadyStateAnimInfo() const override;
|
|
|
|
std::unique_ptr<IAnimReader> VClone() const override;
|
|
|
|
std::optional<std::unique_ptr<IAnimReader>> VSimplified() override;
|
|
|
|
std::optional<std::unique_ptr<IAnimReader>> VReverseSimplified() override;
|
|
|
|
SAdvancementResults VAdvanceView(const CCharAnimTime& a) override;
|
|
|
|
void SetBlendingWeight(float w) override;
|
|
|
|
float VGetBlendingWeight() const override;
|
2016-09-10 04:50:00 +00:00
|
|
|
};
|
2021-04-10 08:42:06 +00:00
|
|
|
} // namespace metaforce
|