CommonLibSSE (powerof3)
BGSAddonNode.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/F/FormTypes.h"
4 #include "RE/T/TESBoundObject.h"
6 
7 namespace RE
8 {
9  struct ADDON_DATA
10  {
11  public:
12  enum class Flag
13  {
14  kNone = 0,
15  kAlwaysLoaded = 3
16  };
17 
18  // members
19  std::uint16_t masterParticleCap; // 0
21  std::uint8_t pad3; // 3
22  };
23  static_assert(sizeof(ADDON_DATA) == 0x4);
24 
25  class BGSAddonNode :
26  public TESBoundObject, // 00
27  public TESModelTextureSwap // 30
28  {
29  public:
30  inline static constexpr auto RTTI = RTTI_BGSAddonNode;
31  inline static constexpr auto VTABLE = VTABLE_BGSAddonNode;
32  inline static constexpr auto FORMTYPE = FormType::AddonNode;
33 
34  struct RecordFlags
35  {
36  enum RecordFlag : std::uint32_t
37  {
38  kDeleted = 1 << 5,
39  kIgnored = 1 << 12
40  };
41  };
42 
43  ~BGSAddonNode() override; // 00
44 
45  // override (TESBoundObject)
46  void InitializeData() override; // 04
47  bool Load(TESFile* a_mod) override; // 06
48  void InitItemImpl() override; // 13
49 
50  // members
51  std::uint32_t index; // 68 - DATA
52  std::uint32_t pad6C; // 6C
54  ADDON_DATA data; // 78 - DNAM
55  std::uint32_t pad7C; // 7C
56  };
57  static_assert(sizeof(BGSAddonNode) == 0x80);
58 }
Definition: BGSAddonNode.h:28
static constexpr auto VTABLE
Definition: BGSAddonNode.h:31
~BGSAddonNode() override
ADDON_DATA data
Definition: BGSAddonNode.h:54
std::uint32_t pad7C
Definition: BGSAddonNode.h:55
static constexpr auto RTTI
Definition: BGSAddonNode.h:30
std::uint32_t index
Definition: BGSAddonNode.h:51
BGSSoundDescriptorForm * sound
Definition: BGSAddonNode.h:53
static constexpr auto FORMTYPE
Definition: BGSAddonNode.h:32
std::uint32_t pad6C
Definition: BGSAddonNode.h:52
void InitItemImpl() override
bool Load(TESFile *a_mod) override
void InitializeData() override
Definition: BGSSoundDescriptorForm.h:14
Definition: TESBoundObject.h:24
Definition: TESFile.h:17
Definition: TESModelTextureSwap.h:10
Definition: AbsorbEffect.h:6
constexpr std::array< REL::ID, 2 > VTABLE_BGSAddonNode
Definition: Offsets_VTABLE.h:8577
constexpr REL::ID RTTI_BGSAddonNode(static_cast< std::uint64_t >(513914))
Definition: BGSAddonNode.h:10
std::uint16_t masterParticleCap
Definition: BGSAddonNode.h:19
std::uint8_t pad3
Definition: BGSAddonNode.h:21
REX::EnumSet< Flag, std::uint8_t > flags
Definition: BGSAddonNode.h:20
Flag
Definition: BGSAddonNode.h:13
Definition: BGSAddonNode.h:35
RecordFlag
Definition: BGSAddonNode.h:37
@ kIgnored
Definition: BGSAddonNode.h:39
@ kDeleted
Definition: BGSAddonNode.h:38