CommonLibVR
NiFloatInterpolator.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "RE/N/NiSmartPointer.h"
5 
6 namespace RE
7 {
8  class NiFloatData;
9 
11  {
12  public:
13  inline static constexpr auto RTTI = RTTI_NiFloatInterpolator;
14  inline static constexpr auto Ni_RTTI = NiRTTI_NiFloatInterpolator;
15  inline static constexpr auto VTABLE = VTABLE_NiFloatInterpolator;
16 
17  ~NiFloatInterpolator() override; // 00
18 
19  // override (NiKeyBasedInterpolator)
20  const NiRTTI* GetRTTI() const override; // 02
21  NiObject* CreateClone(NiCloningProcess& a_cloning) override; // 17
22  void LoadBinary(NiStream& a_stream) override; // 18
23  void LinkObject(NiStream& a_stream) override; // 19 - { NiKeyBasedInterpolator::LinkObject(a_stream); }
24  bool RegisterStreamables(NiStream& a_stream) override; // 1A
25  void SaveBinary(NiStream& a_stream) override; // 1B
26  bool IsEqual(NiObject* a_object) override; // 1C
27  bool Update1(float a_time, NiObjectNET* a_interpTarget, NiQuatTransform& a_value) override; // 25 - { return NiInterpolator::UpdateTransform(a_time, a_interpTarget, a_value); }
28  bool Update2(float a_time, NiObjectNET* a_target, NiColorA& a_value) override; // 26 - { return NiInterpolator::UpdateTransform(a_time, a_interpTarget, a_value); }
29  bool Update3(float a_time, NiObjectNET* a_interpTarget, NiPoint3& a_value) override; // 27 - { return NiInterpolator::UpdateTransform(a_time, a_interpTarget, a_value); }
30  bool Update4(float a_time, NiObjectNET* a_interpTarget, NiQuaternion& a_value) override; // 28 - { return NiInterpolator::UpdateTransform(a_time, a_interpTarget, a_value); }
31  bool Update5(float a_time, NiObjectNET* a_interpTarget, float& a_value) override; // 29
32  bool Update6(float a_time, NiObjectNET* a_interpTarget, bool& a_value) override; // 2A - { return NiInterpolator::UpdateTransform(a_time, a_interpTarget, a_value); }
33  bool IsFloatValueSupported() const override; // 2C - { return true; }
34  void Collapse() override; // 31
35  void GuaranteeTimeRange(float a_start, float a_end) override; // 33
36  NiInterpolator* GetSequenceInterpolator(float a_start, float a_end) override; // 34
37  std::uint16_t GetKeyChannelCount() const override; // 39 - { return 1; }
38  std::uint32_t GetKeyCount(std::uint16_t a_channel) const override; // 3A - { return floatData ? floatData->numKeys : 0; }
39  KeyContent GetKeyContent(std::uint16_t a_channel) const override; // 3B - { KeyContent::kFloat; }
40  KeyType GetKeyType(std::uint16_t a_channel) const override; // 3C - { return floatData ? floatData->type : 0; }
41  void* GetKeyArray(std::uint16_t a_channel) const override; // 3D - { return floatData ? floatData->keys : 0; }
42  std::uint8_t GetKeyStride(std::uint16_t a_channel) const override; // 3E - { return floatData ? floatData->keySize : 0; }
43  [[nodiscard]] bool GetChannelPosed(std::uint16_t a_channel) const override; // 3F - { return !floatData && floatValue != -3.4028235e38; }
44 
45  // members
46  float floatValue; // 18
47  std::uint32_t pad1C; // 1C
49  std::uint32_t lastIndex; // 28
50  std::uint32_t pad2C; // 2C
51  private:
52  KEEP_FOR_RE()
53  };
54  static_assert(sizeof(NiFloatInterpolator) == 0x30);
55 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
KeyContent
Definition: NiAnimationKey.h:9
KeyType
Definition: NiAnimationKey.h:21
Definition: NiCloningProcess.h:10
Definition: NiColor.h:283
Definition: NiFloatInterpolator.h:11
std::uint8_t GetKeyStride(std::uint16_t a_channel) const override
std::uint32_t pad2C
Definition: NiFloatInterpolator.h:50
static constexpr auto VTABLE
Definition: NiFloatInterpolator.h:15
void SaveBinary(NiStream &a_stream) override
~NiFloatInterpolator() override
void LinkObject(NiStream &a_stream) override
float floatValue
Definition: NiFloatInterpolator.h:46
void LoadBinary(NiStream &a_stream) override
void * GetKeyArray(std::uint16_t a_channel) const override
bool Update1(float a_time, NiObjectNET *a_interpTarget, NiQuatTransform &a_value) override
static constexpr auto Ni_RTTI
Definition: NiFloatInterpolator.h:14
NiPointer< NiFloatData > floatData
Definition: NiFloatInterpolator.h:48
bool Update5(float a_time, NiObjectNET *a_interpTarget, float &a_value) override
bool GetChannelPosed(std::uint16_t a_channel) const override
KeyContent GetKeyContent(std::uint16_t a_channel) const override
bool Update3(float a_time, NiObjectNET *a_interpTarget, NiPoint3 &a_value) override
bool IsFloatValueSupported() const override
NiInterpolator * GetSequenceInterpolator(float a_start, float a_end) override
static constexpr auto RTTI
Definition: NiFloatInterpolator.h:13
void GuaranteeTimeRange(float a_start, float a_end) override
KeyType GetKeyType(std::uint16_t a_channel) const override
std::uint32_t lastIndex
Definition: NiFloatInterpolator.h:49
bool RegisterStreamables(NiStream &a_stream) override
bool IsEqual(NiObject *a_object) override
std::uint32_t GetKeyCount(std::uint16_t a_channel) const override
bool Update4(float a_time, NiObjectNET *a_interpTarget, NiQuaternion &a_value) override
std::uint16_t GetKeyChannelCount() const override
const NiRTTI * GetRTTI() const override
bool Update2(float a_time, NiObjectNET *a_target, NiColorA &a_value) override
void Collapse() override
bool Update6(float a_time, NiObjectNET *a_interpTarget, bool &a_value) override
NiObject * CreateClone(NiCloningProcess &a_cloning) override
std::uint32_t pad1C
Definition: NiFloatInterpolator.h:47
Definition: NiInterpolator.h:16
Definition: NiKeyBasedInterpolator.h:9
Definition: NiObjectNET.h:13
Definition: NiObject.h:37
Definition: NiPoint3.h:6
Definition: NiSmartPointer.h:9
Definition: NiQuaternion.h:6
Definition: NiRTTI.h:6
Definition: NiStream.h:29
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_NiFloatInterpolator(static_cast< std::uint64_t >(690510))
constexpr std::array< REL::ID, 1 > VTABLE_NiFloatInterpolator
Definition: Offsets_VTABLE.h:12209
constexpr REL::ID NiRTTI_NiFloatInterpolator(static_cast< std::uint64_t >(524339))