CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
TESLevItem.h
Go to the documentation of this file.
1#pragma once
2
3#include "RE/F/FormTypes.h"
6
7namespace RE
8{
9 class TESLevItem :
10 public TESBoundObject, // 00
11 public TESLeveledList // 30
12 {
13 public:
14 inline static constexpr auto RTTI = RTTI_TESLevItem;
15 inline static constexpr auto FORMTYPE = FormType::LeveledItem;
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 ~TESLevItem() 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 std::int32_t GetLevDifferenceMax() override; // 06 - { return iLevItemLevelDifferenceMax; }
45 [[nodiscard]] bool GetCanContainFormsOfType(FormType a_type) const override; // 07
46 };
47 static_assert(sizeof(TESLevItem) == 0x58);
48}
Definition: TESBoundObject.h:24
Definition: TESFile.h:14
Definition: TESLevItem.h:12
static constexpr auto RTTI
Definition: TESLevItem.h:14
void SaveGame(BGSSaveFormBuffer *a_buf) override
void InitItemImpl() override
bool GetCanContainFormsOfType(FormType a_type) const override
static constexpr auto FORMTYPE
Definition: TESLevItem.h:15
std::int32_t GetLevDifferenceMax() override
void Revert(BGSLoadFormBuffer *a_buf) override
bool Load(TESFile *a_mod) override
~TESLevItem() override
void LoadGame(BGSLoadFormBuffer *a_buf) override
Definition: TESLeveledList.h:27
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_TESLevItem
Definition: Offsets_RTTI.h:6011
FormType
Definition: FormTypes.h:139
Definition: TESLevItem.h:18
ChangeFlag
Definition: TESLevItem.h:20
@ kAddedObject
Definition: TESLevItem.h:21
Definition: TESLevItem.h:26
RecordFlag
Definition: TESLevItem.h:28
@ kIgnored
Definition: TESLevItem.h:30
@ kDeleted
Definition: TESLevItem.h:29