CommonLibSSE (Parapets fork)
NiFloatData.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/N/NiFloatKey.h"
4 #include "RE/N/NiObject.h"
5 
6 namespace RE
7 {
8  class NiFloatData : public NiObject
9  {
10  public:
11  inline static constexpr auto RTTI = RTTI_NiFloatData;
12  inline static constexpr auto Ni_RTTI = NiRTTI_NiFloatData;
13 
15 
17  ~NiFloatData() 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  NiFloatKey* GetAnim(std::uint32_t& a_numKeys, KeyType& a_type, std::uint8_t& a_size) const;
27 
28  // members
29  std::uint32_t numKeys; // 10
30  std::uint32_t pad14; // 14
31  NiFloatKey* keys; // 18
32  KeyType type; // 20
33  std::uint8_t keySize; // 24
34  std::uint8_t pad25; // 25
35  std::uint16_t pad26; // 26
36  };
37  static_assert(sizeof(NiFloatData) == 0x28);
38 }
KeyType
Definition: NiAnimationKey.h:21
Definition: NiFloatData.h:9
const NiRTTI * GetRTTI() const override
void SaveBinary(NiStream &a_stream) override
static constexpr auto RTTI
Definition: NiFloatData.h:11
std::uint8_t keySize
Definition: NiFloatData.h:33
void LoadBinary(NiStream &a_stream) override
std::uint16_t pad26
Definition: NiFloatData.h:35
std::uint32_t numKeys
Definition: NiFloatData.h:29
bool IsEqual(NiObject *a_object) override
std::uint8_t pad25
Definition: NiFloatData.h:34
std::uint32_t pad14
Definition: NiFloatData.h:30
NiFloatKey * GetAnim(std::uint32_t &a_numKeys, KeyType &a_type, std::uint8_t &a_size) const
~NiFloatData() override
std::uint32_t GetNumKeys() const
NiFloatKey * keys
Definition: NiFloatData.h:31
KeyType type
Definition: NiFloatData.h:32
static constexpr auto Ni_RTTI
Definition: NiFloatData.h:12
Definition: NiFloatKey.h:8
Definition: NiObject.h:37
Definition: NiRTTI.h:6
Definition: NiStream.h:6
Definition: AbsorbEffect.h:6
constexpr REL::ID NiRTTI_NiFloatData
Definition: Offsets_NiRTTI.h:189
constexpr REL::ID RTTI_NiFloatData
Definition: Offsets_RTTI.h:5359