CommonLibSSE (Parapets fork)
NiNode.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/N/NiAVObject.h"
4 #include "RE/N/NiSmartPointer.h"
5 #include "RE/N/NiTArray.h"
6 
7 namespace RE
8 {
9  class NiUpdateData;
10 
11  class NiNode : public NiAVObject
12  {
13  public:
14  inline static constexpr auto RTTI = RTTI_NiNode;
15  inline static constexpr auto Ni_RTTI = NiRTTI_NiNode;
16 
17  ~NiNode() override; // 00
18 
19  // override (NiAVObject)
20  const NiRTTI* GetRTTI() const override; // 02
21  NiNode* AsNode() override; // 03 - { return this; }
22  NiObject* CreateClone(NiCloningProcess& a_cloning) override; // 17
23  void LoadBinary(NiStream& a_stream) override; // 18
24  void LinkObject(NiStream& a_stream) override; // 19
25  bool RegisterStreamables(NiStream& a_stream) override; // 1A
26  void SaveBinary(NiStream& a_stream) override; // 1B
27  bool IsEqual(NiObject* a_object) override; // 1C
28  void ProcessClone(NiCloningProcess& a_cloning) override; // 1D
29  void UpdateControllers(NiUpdateData& a_data) override; // 25
30  void PerformOp(PerformOpFunc& a_func) override; // 26
31  void AttachProperty(NiAlphaProperty* a_property) override; // 27
32  NiAVObject* GetObjectByName(const BSFixedString& a_name) override; // 2A
33  void SetSelectiveUpdateFlags(bool& a_selectiveUpdate, bool a_selectiveUpdateTransforms, bool& a_rigid) override; // 2B
34  void UpdateDownwardPass(NiUpdateData& a_data, std::uint32_t a_arg2) override; // 2C
35  void UpdateSelectedDownwardPass(NiUpdateData& a_data, std::uint32_t a_arg2) override; // 2D
36  void UpdateRigidDownwardPass(NiUpdateData& a_data, std::uint32_t a_arg2) override; // 2E
37  void UpdateWorldBound() override; // 2F
38  void UpdateTransformAndBounds(NiUpdateData& a_data) override; // 31
39  void OnVisible(NiCullingProcess& a_process) override; // 34
40 
41  // add
42  virtual void AttachChild(NiAVObject* a_child, bool a_firstAvail = false); // 35
43  virtual void InsertChildAt(std::uint32_t a_idx, NiAVObject* a_child); // 36
44  virtual void DetachChild1(NiAVObject* a_child, NiPointer<NiAVObject>& a_childOut); // 37
45  virtual void DetachChild2(NiAVObject* a_child); // 38
46  virtual void DetachChildAt1(std::uint32_t a_idx, NiPointer<NiAVObject>& a_childOut); // 39
47  virtual void DetachChildAt2(std::uint32_t a_idx); // 3A
48  virtual void SetAt1(std::uint32_t a_idx, NiAVObject* a_child, NiPointer<NiAVObject>& a_childOut); // 3B
49  virtual void SetAt2(std::uint32_t a_idx, NiAVObject* a_child); // 3C
50  virtual void UpdateUpwardPass(NiUpdateData& a_data); // 3D
51 
52  static NiNode* Create(std::uint16_t a_arrBufLen = 0);
53 
54  void DetachChild(NiAVObject* a_child);
55  void DetachChild(NiAVObject* a_child, NiPointer<NiAVObject>& a_childOut);
56  void DetachChildAt(std::uint32_t a_idx);
57  void DetachChildAt(std::uint32_t a_idx, NiPointer<NiAVObject>& a_childOut);
58  void SetAt(std::uint32_t a_idx, NiAVObject* a_child);
59  void SetAt(std::uint32_t a_idx, NiAVObject* a_child, NiPointer<NiAVObject>& a_childOut);
60 
61  // members
63 
64  protected:
65  NiNode* Ctor(std::uint16_t a_arrBufLen);
66  };
67 #ifndef SKYRIMVR
68  static_assert(sizeof(NiNode) == 0x128);
69 #else
70  static_assert(sizeof(NiNode) == 0x150);
71 #endif
72 }
Definition: NiAVObject.h:45
Definition: NiAlphaProperty.h:8
Definition: NiCullingProcess.h:34
Definition: NiNode.h:12
void UpdateSelectedDownwardPass(NiUpdateData &a_data, std::uint32_t a_arg2) override
void SetSelectiveUpdateFlags(bool &a_selectiveUpdate, bool a_selectiveUpdateTransforms, bool &a_rigid) override
virtual void InsertChildAt(std::uint32_t a_idx, NiAVObject *a_child)
virtual void DetachChild2(NiAVObject *a_child)
void DetachChildAt(std::uint32_t a_idx)
const NiRTTI * GetRTTI() const override
void SetAt(std::uint32_t a_idx, NiAVObject *a_child)
NiNode * AsNode() override
void OnVisible(NiCullingProcess &a_process) override
void UpdateTransformAndBounds(NiUpdateData &a_data) override
static constexpr auto RTTI
Definition: NiNode.h:14
void UpdateControllers(NiUpdateData &a_data) override
void LinkObject(NiStream &a_stream) override
void UpdateDownwardPass(NiUpdateData &a_data, std::uint32_t a_arg2) override
void ProcessClone(NiCloningProcess &a_cloning) override
void UpdateWorldBound() override
void PerformOp(PerformOpFunc &a_func) override
static constexpr auto Ni_RTTI
Definition: NiNode.h:15
virtual void DetachChild1(NiAVObject *a_child, NiPointer< NiAVObject > &a_childOut)
void DetachChild(NiAVObject *a_child)
~NiNode() override
virtual void DetachChildAt2(std::uint32_t a_idx)
void DetachChild(NiAVObject *a_child, NiPointer< NiAVObject > &a_childOut)
virtual void SetAt1(std::uint32_t a_idx, NiAVObject *a_child, NiPointer< NiAVObject > &a_childOut)
NiObject * CreateClone(NiCloningProcess &a_cloning) override
virtual void DetachChildAt1(std::uint32_t a_idx, NiPointer< NiAVObject > &a_childOut)
void DetachChildAt(std::uint32_t a_idx, NiPointer< NiAVObject > &a_childOut)
static NiNode * Create(std::uint16_t a_arrBufLen=0)
bool IsEqual(NiObject *a_object) override
void AttachProperty(NiAlphaProperty *a_property) override
NiAVObject * GetObjectByName(const BSFixedString &a_name) override
void UpdateRigidDownwardPass(NiUpdateData &a_data, std::uint32_t a_arg2) override
void SetAt(std::uint32_t a_idx, NiAVObject *a_child, NiPointer< NiAVObject > &a_childOut)
void SaveBinary(NiStream &a_stream) override
virtual void UpdateUpwardPass(NiUpdateData &a_data)
virtual void SetAt2(std::uint32_t a_idx, NiAVObject *a_child)
NiNode * Ctor(std::uint16_t a_arrBufLen)
virtual void AttachChild(NiAVObject *a_child, bool a_firstAvail=false)
NiTObjectArray< NiPointer< NiAVObject > > children
Definition: NiNode.h:62
void LoadBinary(NiStream &a_stream) override
bool RegisterStreamables(NiStream &a_stream) override
Definition: NiObject.h:37
Definition: NiSmartPointer.h:9
Definition: NiRTTI.h:6
Definition: NiStream.h:6
Definition: NiTArray.h:126
Definition: NiAVObject.h:22
Definition: NiAVObject.h:35
Definition: AbsorbEffect.h:6
constexpr REL::ID NiRTTI_NiNode
Definition: Offsets_NiRTTI.h:215
constexpr REL::ID RTTI_NiNode
Definition: Offsets_RTTI.h:5389