CommonLibSSE (Parapets fork)
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 FORMTYPE = FormType::AddonNode;
32 
33  struct RecordFlags
34  {
35  enum RecordFlag : std::uint32_t
36  {
37  kDeleted = 1 << 5,
38  kIgnored = 1 << 12
39  };
40  };
41 
42  ~BGSAddonNode() override; // 00
43 
44  // override (TESBoundObject)
45  void InitializeData() override; // 04
46  bool Load(TESFile* a_mod) override; // 06
47  void InitItemImpl() override; // 13
48 
49  // members
50  std::uint32_t index; // 68 - DATA
51  std::uint32_t pad6C; // 6C
53  ADDON_DATA data; // 78 - DNAM
54  std::uint32_t pad7C; // 7C
55  };
56  static_assert(sizeof(BGSAddonNode) == 0x80);
57 }
Definition: BGSAddonNode.h:28
~BGSAddonNode() override
ADDON_DATA data
Definition: BGSAddonNode.h:53
std::uint32_t pad7C
Definition: BGSAddonNode.h:54
static constexpr auto RTTI
Definition: BGSAddonNode.h:30
std::uint32_t index
Definition: BGSAddonNode.h:50
BGSSoundDescriptorForm * sound
Definition: BGSAddonNode.h:52
static constexpr auto FORMTYPE
Definition: BGSAddonNode.h:31
std::uint32_t pad6C
Definition: BGSAddonNode.h:51
void InitItemImpl() override
bool Load(TESFile *a_mod) override
void InitializeData() override
Definition: BGSSoundDescriptorForm.h:14
Definition: TESBoundObject.h:24
Definition: TESFile.h:14
Definition: TESModelTextureSwap.h:10
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BGSAddonNode
Definition: Offsets_RTTI.h:1251
Definition: BGSAddonNode.h:10
std::uint16_t masterParticleCap
Definition: BGSAddonNode.h:19
std::uint8_t pad3
Definition: BGSAddonNode.h:21
stl::enumeration< Flag, std::uint8_t > flags
Definition: BGSAddonNode.h:20
Flag
Definition: BGSAddonNode.h:13
Definition: BGSAddonNode.h:34
RecordFlag
Definition: BGSAddonNode.h:36
@ kIgnored
Definition: BGSAddonNode.h:38
@ kDeleted
Definition: BGSAddonNode.h:37