CommonLibSSE NG
NiProperty.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/N/NiObjectNET.h"
4 
5 namespace RE
6 {
7  class NiProperty : public NiObjectNET
8  {
9  public:
10  inline static constexpr auto RTTI = RTTI_NiProperty;
11  inline static auto Ni_RTTI = NiRTTI_NiProperty;
12 
13  enum class Type
14  {
15  kAlpha = 0,
16  kShade = 1
17  };
18 
19  ~NiProperty() override; // 00
20 
21  // override (NiObjectNET)
22  const NiRTTI* GetRTTI() const override; // 02
23  void LoadBinary(NiStream& a_stream) override; // 18 - { NiObjectNET::LoadBinary(a_stream); }
24  void LinkObject(NiStream& a_stream) override; // 19 - { NiObjectNET::LinkObject(a_stream); }
25  bool RegisterStreamables(NiStream& a_stream) override; // 1A - { return NiObjectNET::RegisterStreamables(a_stream); }
26  void SaveBinary(NiStream& a_stream) override; // 1B - { NiObjectNET::SaveBinary(a_stream); }
27  bool IsEqual(NiObject* a_object) override; // 1C - { return NiObjectNET::IsEqual(a_object); }
28  void ProcessClone(NiCloningProcess& a_cloning) override; // 1D
29 
30  // add
31  [[nodiscard]] virtual Type GetType() const = 0; // 25
32  virtual void Update(float a_time); // 26
33  };
34  static_assert(sizeof(NiProperty) == 0x30);
35 }
Definition: NiCloningProcess.h:10
Definition: NiObjectNET.h:13
Definition: NiObject.h:37
Definition: NiProperty.h:8
~NiProperty() override
static auto Ni_RTTI
Definition: NiProperty.h:11
static constexpr auto RTTI
Definition: NiProperty.h:10
bool RegisterStreamables(NiStream &a_stream) override
void ProcessClone(NiCloningProcess &a_cloning) override
void LoadBinary(NiStream &a_stream) override
Type
Definition: NiProperty.h:14
virtual void Update(float a_time)
virtual Type GetType() const =0
bool IsEqual(NiObject *a_object) override
const NiRTTI * GetRTTI() const override
void SaveBinary(NiStream &a_stream) override
void LinkObject(NiStream &a_stream) override
Definition: NiRTTI.h:6
Definition: NiStream.h:29
Definition: AbsorbEffect.h:6
constexpr REL::VariantID NiRTTI_NiProperty(523929, 410509, 0x316adc0)
constexpr REL::VariantID RTTI_NiProperty(684912, 392646, 0x1edc2b8)