CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
NiColorData.h
Go to the documentation of this file.
1#pragma once
2
3#include "RE/N/NiColorKey.h"
4#include "RE/N/NiObject.h"
5
6namespace RE
7{
8 class NiColorData : public NiObject
9 {
10 public:
11 inline static constexpr auto RTTI = RTTI_NiColorData;
12 inline static constexpr auto Ni_RTTI = NiRTTI_NiColorData;
13
15
17 ~NiColorData() override; // 00
18
19 // override (NiObject)
20 const NiRTTI* GetRTTI() const override; // 02
21 void LoadBinary(NiStream& a_stream) override; // 18
22 void SaveBinary(NiStream& a_stream) override; // 1B
23 bool IsEqual(NiObject* a_object) override; // 1C
24
25 [[nodiscard]] std::uint32_t GetNumKeys() const;
26 NiColorKey* GetAnim(std::uint32_t& a_numKeys, NiColorKey::KeyType& a_type, std::uint8_t& a_size) const;
27
28 // members
29 std::uint32_t numKeys; // 10
30 std::uint32_t pad14; // 14
33 std::uint8_t keySize; // 24
34 std::uint8_t pad25; // 25
35 std::uint16_t pad26; // 26
36 };
37 static_assert(sizeof(NiColorData) == 0x28);
38}
KeyType
Definition: NiAnimationKey.h:21
Definition: NiColorData.h:9
std::uint32_t numKeys
Definition: NiColorData.h:29
std::uint8_t pad25
Definition: NiColorData.h:34
NiColorKey * GetAnim(std::uint32_t &a_numKeys, NiColorKey::KeyType &a_type, std::uint8_t &a_size) const
void SaveBinary(NiStream &a_stream) override
std::uint16_t pad26
Definition: NiColorData.h:35
std::uint8_t keySize
Definition: NiColorData.h:33
bool IsEqual(NiObject *a_object) override
void LoadBinary(NiStream &a_stream) override
~NiColorData() override
NiColorKey * keys
Definition: NiColorData.h:31
std::uint32_t GetNumKeys() const
const NiRTTI * GetRTTI() const override
static constexpr auto Ni_RTTI
Definition: NiColorData.h:12
std::uint32_t pad14
Definition: NiColorData.h:30
KeyType type
Definition: NiColorData.h:32
static constexpr auto RTTI
Definition: NiColorData.h:11
Definition: NiColorKey.h:9
Definition: NiObject.h:37
Definition: NiRTTI.h:6
Definition: NiStream.h:6
Definition: AbsorbEffect.h:6
constexpr REL::ID NiRTTI_NiColorData
Definition: Offsets_NiRTTI.h:177
constexpr REL::ID RTTI_NiColorData
Definition: Offsets_RTTI.h:5346