CommonLibSSE NG
NiSkinInstance.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/N/NiObject.h"
4 #include "RE/N/NiSmartPointer.h"
5 
6 #include "REX/W32/BASE.h"
7 
8 namespace RE
9 {
10  class NiAVObject;
11  class NiTransform;
12  class NiSkinData;
13  class NiSkinPartition;
14 
15  class NiSkinInstance : public NiObject
16  {
17  public:
18  inline static constexpr auto RTTI = RTTI_NiSkinInstance;
19  inline static auto Ni_RTTI = NiRTTI_NiSkinInstance;
20 
21  ~NiSkinInstance() override; // 00
22 
23  // override (NiObject)
24  const NiRTTI* GetRTTI() const override; // 02
25  NiObject* CreateClone(NiCloningProcess& a_cloning) override; // 17
26  void LoadBinary(NiStream& a_stream) override; // 18
27  void LinkObject(NiStream& a_stream) override; // 19
28  bool RegisterStreamables(NiStream& a_stream) override; // 1A
29  void SaveBinary(NiStream& a_stream) override; // 1B
30  bool IsEqual(NiObject* a_object) override; // 1C
31  void PostLinkObject(NiStream& a_stream) override; // 1E - { return; }
32 
33  // add
34  virtual void Unk_25(void); // 25
35 
37 
38  // members
42  NiAVObject** bones; // 28
44  std::uint32_t frameID; // 38
45  std::uint32_t numMatrices; // 3C
46  std::uint32_t numRegisters; // 40
47  std::uint32_t allocatedSize; // 44
48  void* boneMatrices; // 48
49  void* prevBoneMatrices; // 50
51 #ifndef ENABLE_SKYRIM_VR
53  };
54  static_assert(sizeof(NiSkinInstance) == 0x88);
55 #else
56  std::uint64_t unk60; // 60 - no lock in VR
57  };
58  static_assert(sizeof(NiSkinInstance) == 0x68);
59 #endif
60 }
Definition: NiAVObject.h:50
Definition: NiCloningProcess.h:10
Definition: NiObject.h:37
Definition: NiSmartPointer.h:9
Definition: NiRTTI.h:6
Definition: NiSkinInstance.h:16
const NiRTTI * GetRTTI() const override
void PostLinkObject(NiStream &a_stream) override
~NiSkinInstance() override
std::uint32_t numMatrices
Definition: NiSkinInstance.h:45
REX::W32::CRITICAL_SECTION lock
Definition: NiSkinInstance.h:52
NiAVObject * rootParent
Definition: NiSkinInstance.h:41
void SaveBinary(NiStream &a_stream) override
bool IsEqual(NiObject *a_object) override
std::uint32_t numRegisters
Definition: NiSkinInstance.h:46
NiObject * CreateClone(NiCloningProcess &a_cloning) override
const NiTransform ** boneWorldTransforms
Definition: NiSkinInstance.h:43
virtual void Unk_25(void)
NiPointer< NiSkinPartition > skinPartition
Definition: NiSkinInstance.h:40
static auto Ni_RTTI
Definition: NiSkinInstance.h:19
void LinkObject(NiStream &a_stream) override
void * prevBoneMatrices
Definition: NiSkinInstance.h:49
void * skinToWorldWorldToSkinMatrix
Definition: NiSkinInstance.h:50
NiPointer< NiSkinData > skinData
Definition: NiSkinInstance.h:39
NiAVObject ** bones
Definition: NiSkinInstance.h:42
std::uint32_t frameID
Definition: NiSkinInstance.h:44
static constexpr auto RTTI
Definition: NiSkinInstance.h:18
std::uint32_t allocatedSize
Definition: NiSkinInstance.h:47
static NiSkinInstance * Create()
bool RegisterStreamables(NiStream &a_stream) override
void LoadBinary(NiStream &a_stream) override
void * boneMatrices
Definition: NiSkinInstance.h:48
Definition: NiStream.h:29
Definition: NiTransform.h:9
Definition: AbsorbEffect.h:6
constexpr REL::VariantID NiRTTI_NiSkinInstance(523976, 410556, 0x316c0d0)
constexpr REL::VariantID RTTI_NiSkinInstance(690429, 398284, 0x1f61f78)
Definition: BASE.h:137