CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
TESLevSpell.h
Go to the documentation of this file.
1#pragma once
2
3#include "RE/F/FormTypes.h"
6
7namespace 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 FORMTYPE = FormType::LeveledSpell;
16
18 {
19 enum ChangeFlag : std::uint32_t
20 {
21 kAddedObject = (std::uint32_t)1 << 31
22 };
23 };
24
26 {
27 enum RecordFlag : std::uint32_t
28 {
29 kDeleted = 1 << 5,
30 kIgnored = 1 << 12
31 };
32 };
33
34 ~TESLevSpell() override; // 00
35
36 // override (TESBoundObject)
37 bool Load(TESFile* a_mod) override; // 06
38 void SaveGame(BGSSaveFormBuffer* a_buf) override; // 0E
39 void LoadGame(BGSLoadFormBuffer* a_buf) override; // 0F
40 void Revert(BGSLoadFormBuffer* a_buf) override; // 12
41 void InitItemImpl() override; // 13
42
43 // override (TESLeveledList)
44 [[nodiscard]] bool GetCanContainFormsOfType(FormType a_type) const override; // 07
45 };
46 static_assert(sizeof(TESLevSpell) == 0x58);
47}
Definition: TESBoundObject.h:24
Definition: TESFile.h:14
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
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:15
Definition: TESLeveledList.h:27
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_TESLevSpell
Definition: Offsets_RTTI.h:6012
FormType
Definition: FormTypes.h:139
Definition: TESLevSpell.h:18
ChangeFlag
Definition: TESLevSpell.h:20
@ kAddedObject
Definition: TESLevSpell.h:21
Definition: TESLevSpell.h:26
RecordFlag
Definition: TESLevSpell.h:28
@ kDeleted
Definition: TESLevSpell.h:29
@ kIgnored
Definition: TESLevSpell.h:30