CommonLibSSE (powerof3)
TESLevSpell.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/F/FormTypes.h"
4 #include "RE/T/TESBoundObject.h"
5 #include "RE/T/TESLeveledList.h"
6 
7 namespace RE
8 {
9  class TESLevSpell :
10  public TESBoundObject, // 00
11  public TESLeveledList // 30
12  {
13  public:
14  inline static constexpr auto RTTI = RTTI_TESLevSpell;
15  inline static constexpr auto VTABLE = VTABLE_TESLevSpell;
16  inline static constexpr auto FORMTYPE = FormType::LeveledSpell;
17 
18  struct ChangeFlags
19  {
20  enum ChangeFlag : std::uint32_t
21  {
22  kAddedObject = (std::uint32_t)1 << 31
23  };
24  };
25 
26  struct RecordFlags
27  {
28  enum RecordFlag : std::uint32_t
29  {
30  kDeleted = 1 << 5,
31  kIgnored = 1 << 12
32  };
33  };
34 
35  ~TESLevSpell() override; // 00
36 
37  // override (TESBoundObject)
38  bool Load(TESFile* a_mod) override; // 06
39  void SaveGame(BGSSaveFormBuffer* a_buf) override; // 0E
40  void LoadGame(BGSLoadFormBuffer* a_buf) override; // 0F
41  void Revert(BGSLoadFormBuffer* a_buf) override; // 12
42  void InitItemImpl() override; // 13
43 
44  // override (TESLeveledList)
45  [[nodiscard]] bool GetCanContainFormsOfType(FormType a_type) const override; // 07
46  };
47  static_assert(sizeof(TESLevSpell) == 0x58);
48 }
Definition: BGSLoadFormBuffer.h:11
Definition: BGSSaveFormBuffer.h:8
Definition: TESBoundObject.h:24
Definition: TESFile.h:17
Definition: TESLevSpell.h:12
void Revert(BGSLoadFormBuffer *a_buf) override
~TESLevSpell() override
void InitItemImpl() override
static constexpr auto RTTI
Definition: TESLevSpell.h:14
bool Load(TESFile *a_mod) override
static constexpr auto VTABLE
Definition: TESLevSpell.h:15
bool GetCanContainFormsOfType(FormType a_type) const override
void SaveGame(BGSSaveFormBuffer *a_buf) override
void LoadGame(BGSLoadFormBuffer *a_buf) override
static constexpr auto FORMTYPE
Definition: TESLevSpell.h:16
Definition: TESLeveledList.h:40
Definition: AbsorbEffect.h:6
FormType
Definition: FormTypes.h:139
constexpr std::array< REL::ID, 2 > VTABLE_TESLevSpell
Definition: Offsets_VTABLE.h:12843
constexpr REL::ID RTTI_TESLevSpell(static_cast< std::uint64_t >(513955))
Definition: TESLevSpell.h:19
ChangeFlag
Definition: TESLevSpell.h:21
@ kAddedObject
Definition: TESLevSpell.h:22
Definition: TESLevSpell.h:27
RecordFlag
Definition: TESLevSpell.h:29
@ kDeleted
Definition: TESLevSpell.h:30
@ kIgnored
Definition: TESLevSpell.h:31