CommonLibSSE NG
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 VTABLE = VTABLE_TESLevSpell;
16 inline static constexpr auto FORMTYPE = FormType::LeveledSpell;
17
19 {
20 enum ChangeFlag : std::uint32_t
21 {
22 kAddedObject = (std::uint32_t)1 << 31
23 };
24 };
25
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 TESBoundObject.h:24
Definition TESFile.h:15
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
constexpr REL::VariantID RTTI_TESLevSpell(513955, 392613, 0x1edba40)
FormType
Definition FormTypes.h:139
constexpr std::array< REL::VariantID, 2 > VTABLE_TESLevSpell
Definition Offsets_VTABLE.h:514
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