CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
NiExtraData.h
Go to the documentation of this file.
1#pragma once
2
4#include "RE/N/NiObject.h"
5
6namespace RE
7{
8 class NiExtraData : public NiObject
9 {
10 public:
11 inline static constexpr auto RTTI = RTTI_NiExtraData;
12 inline static constexpr auto Ni_RTTI = NiRTTI_NiExtraData;
13
14 ~NiExtraData() override; // 00
15
16 // override (NiObject)
17 const NiRTTI* GetRTTI() const override; // 02
18 void LoadBinary(NiStream& a_stream) override; // 18
19 void LinkObject(NiStream& a_stream) override; // 19 - { return; }
20 bool RegisterStreamables(NiStream& a_stream) override; // 1A
21 void SaveBinary(NiStream& a_stream) override; // 1B
22 bool IsEqual(NiObject* a_object) override; // 1C
23
24 // add
25 [[nodiscard]] virtual bool IsStreamable() const; // 25 - { return true; }
26 [[nodiscard]] virtual bool IsCloneable() const; // 26 - { return true; }
27
28 static NiExtraData* Create(std::size_t a_size, std::uintptr_t a_vtbl);
29
30 [[nodiscard]] const BSFixedString& GetName() const;
31 void SetName(const BSFixedString& a_name);
32
33 // members
35 };
36 static_assert(sizeof(NiExtraData) == 0x18);
37}
Definition: NiExtraData.h:9
bool RegisterStreamables(NiStream &a_stream) override
virtual bool IsCloneable() const
void SaveBinary(NiStream &a_stream) override
void LoadBinary(NiStream &a_stream) override
~NiExtraData() override
BSFixedString name
Definition: NiExtraData.h:34
void SetName(const BSFixedString &a_name)
static NiExtraData * Create(std::size_t a_size, std::uintptr_t a_vtbl)
static constexpr auto RTTI
Definition: NiExtraData.h:11
const NiRTTI * GetRTTI() const override
bool IsEqual(NiObject *a_object) override
void LinkObject(NiStream &a_stream) override
static constexpr auto Ni_RTTI
Definition: NiExtraData.h:12
virtual bool IsStreamable() const
const BSFixedString & GetName() const
Definition: NiObject.h:37
Definition: NiRTTI.h:6
Definition: NiStream.h:6
Definition: AbsorbEffect.h:6
constexpr REL::ID NiRTTI_NiExtraData
Definition: Offsets_NiRTTI.h:186
constexpr REL::ID RTTI_NiExtraData
Definition: Offsets_RTTI.h:5355