2018-10-07 03:42:33 +00:00
|
|
|
#pragma once
|
2016-09-14 05:45:46 +00:00
|
|
|
|
2019-09-28 02:53:03 +00:00
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
#include "Runtime/Character/CCharAnimTime.hpp"
|
2016-09-14 05:45:46 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
namespace urde {
|
|
|
|
class IVaryingAnimationTimeScale {
|
2016-09-14 05:45:46 +00:00
|
|
|
public:
|
2018-12-08 05:30:43 +00:00
|
|
|
virtual u32 GetType() const = 0;
|
|
|
|
virtual float VTimeScaleIntegral(const float&, const float&) const = 0;
|
|
|
|
virtual float VFindUpperLimit(const float&, const float&) const = 0;
|
|
|
|
virtual std::unique_ptr<IVaryingAnimationTimeScale> VClone() const = 0;
|
|
|
|
virtual std::unique_ptr<IVaryingAnimationTimeScale> VGetFunctionMirrored(const float&) const = 0;
|
|
|
|
CCharAnimTime FindUpperLimit(const CCharAnimTime& a, const CCharAnimTime& b) const { return VFindUpperLimit(a, b); }
|
2016-09-14 05:45:46 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
CCharAnimTime TimeScaleIntegral(const CCharAnimTime& a, const CCharAnimTime& b) const {
|
|
|
|
return VTimeScaleIntegral(a, b);
|
|
|
|
}
|
2016-09-14 05:45:46 +00:00
|
|
|
|
2018-12-08 05:30:43 +00:00
|
|
|
std::unique_ptr<IVaryingAnimationTimeScale> Clone() const { return VClone(); }
|
2016-09-14 05:45:46 +00:00
|
|
|
};
|
2018-12-08 05:30:43 +00:00
|
|
|
} // namespace urde
|