CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
NiColorInterpolator.h
Go to the documentation of this file.
1#pragma once
2
3#include "RE/N/NiColor.h"
6
7namespace RE
8{
9 class NiColorData;
10
12 {
13 public:
14 inline static constexpr auto RTTI = RTTI_NiColorInterpolator;
15 inline static constexpr auto Ni_RTTI = NiRTTI_NiColorInterpolator;
16
17 ~NiColorInterpolator() 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
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 - { return NiInterpolator::UpdateTransform(a_time, a_interpTarget, a_value); }
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 IsColorAValueSupported() const override; // 2F - { 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 colorData ? colorData->numKeys : 0; }
39 KeyContent GetKeyContent(std::uint16_t a_channel) const override; // 3B - { KeyContent::kColor; }
40 KeyType GetKeyType(std::uint16_t a_channel) const override; // 3C - { return colorData ? colorData->type : 0; }
41 void* GetKeyArray(std::uint16_t a_channel) const override; // 3D - { return colorData ? colorData->keys : 0; }
42 std::uint8_t GetKeyStride(std::uint16_t a_channel) const override; // 3E - { return colorData ? colorData->keySize : 0; }
43 [[nodiscard]] bool GetChannelPosed(std::uint16_t a_channel) const override; // 3F
44
45 // members
48 std::uint32_t lastIndex; // 30
49 std::uint32_t pad34; // 34
50 };
51 static_assert(sizeof(NiColorInterpolator) == 0x38);
52}
KeyContent
Definition: NiAnimationKey.h:9
KeyType
Definition: NiAnimationKey.h:21
Definition: NiColor.h:137
Definition: NiColorInterpolator.h:12
void SaveBinary(NiStream &a_stream) override
void GuaranteeTimeRange(float a_start, float a_end) override
NiObject * CreateClone(NiCloningProcess &a_cloning) override
NiPointer< NiColorData > colorData
Definition: NiColorInterpolator.h:47
void Collapse() override
bool Update6(float a_time, NiObjectNET *a_interpTarget, bool &a_value) override
~NiColorInterpolator() override
KeyContent GetKeyContent(std::uint16_t a_channel) const override
const NiRTTI * GetRTTI() const override
bool GetChannelPosed(std::uint16_t a_channel) const override
bool RegisterStreamables(NiStream &a_stream) override
bool Update2(float a_time, NiObjectNET *a_target, NiColorA &a_value) override
NiColorA colorValue
Definition: NiColorInterpolator.h:46
NiInterpolator * GetSequenceInterpolator(float a_start, float a_end) override
bool IsEqual(NiObject *a_object) override
void LinkObject(NiStream &a_stream) override
bool Update1(float a_time, NiObjectNET *a_interpTarget, NiQuatTransform &a_value) override
void * GetKeyArray(std::uint16_t a_channel) const override
std::uint32_t pad34
Definition: NiColorInterpolator.h:49
void LoadBinary(NiStream &a_stream) override
std::uint32_t GetKeyCount(std::uint16_t a_channel) const override
bool Update5(float a_time, NiObjectNET *a_interpTarget, float &a_value) override
static constexpr auto Ni_RTTI
Definition: NiColorInterpolator.h:15
static constexpr auto RTTI
Definition: NiColorInterpolator.h:14
bool Update3(float a_time, NiObjectNET *a_interpTarget, NiPoint3 &a_value) override
KeyType GetKeyType(std::uint16_t a_channel) const override
std::uint32_t lastIndex
Definition: NiColorInterpolator.h:48
std::uint8_t GetKeyStride(std::uint16_t a_channel) const override
std::uint16_t GetKeyChannelCount() const override
bool Update4(float a_time, NiObjectNET *a_interpTarget, NiQuaternion &a_value) override
bool IsColorAValueSupported() const override
Definition: NiInterpolator.h:16
Definition: NiKeyBasedInterpolator.h:9
Definition: NiObject.h:37
Definition: NiObjectNET.h:13
Definition: NiPoint3.h:6
Definition: NiSmartPointer.h:9
Definition: NiQuaternion.h:6
Definition: NiRTTI.h:6
Definition: NiStream.h:6
Definition: AbsorbEffect.h:6
constexpr REL::ID NiRTTI_NiColorInterpolator
Definition: Offsets_NiRTTI.h:180
constexpr REL::ID RTTI_NiColorInterpolator
Definition: Offsets_RTTI.h:5349