CommonLibSSE (Parapets fork)
Loading...
Searching...
No Matches
ScrollItem.h
Go to the documentation of this file.
1#pragma once
2
5#include "RE/S/SpellItem.h"
7#include "RE/T/TESValueForm.h"
9
10namespace RE
11{
12 class ScrollItem :
13 public SpellItem, // 000
14 public TESModelTextureSwap, // 0E8
15 public BGSDestructibleObjectForm, // 120
16 public BGSPickupPutdownSounds, // 130
17 public TESWeightForm, // 148
18 public TESValueForm // 158
19 {
20 public:
21 inline static constexpr auto RTTI = RTTI_ScrollItem;
22 inline static constexpr auto FORMTYPE = FormType::Scroll;
23
25 {
26 enum RecordFlag : std::uint32_t
27 {
28 kDeleted = 1 << 5,
29 kIgnored = 1 << 12
30 };
31 };
32
33 ~ScrollItem() override; // 00
34
35 // override (SpellItem)
36 void InitItemImpl() override; // 13
37 MagicSystem::SpellType GetSpellType() const override; // 53 - { return MagicSystem::SpellType::kScroll; }
38 MagicSystem::CastingType GetCastingType() const override; // 55 - { return MagicSystem::CastingType::kFireAndForget; }
39 bool GetSkillUsageData(SkillUsageData& a_data) const override; // 60 - { return 0; }
40 ActorValue GetAssociatedSkill() const override; // 66 - { return ActorValue::kNone; }
41 void LoadMagicItemChunk(TESFile* a_mod, std::uint32_t a_chunkID) override; // 6A
42 };
43 static_assert(sizeof(ScrollItem) == 0x168);
44}
Definition: BGSDestructibleObjectForm.h:61
Definition: BGSPickupPutdownSounds.h:10
Definition: ScrollItem.h:19
ActorValue GetAssociatedSkill() const override
~ScrollItem() override
static constexpr auto FORMTYPE
Definition: ScrollItem.h:22
bool GetSkillUsageData(SkillUsageData &a_data) const override
void LoadMagicItemChunk(TESFile *a_mod, std::uint32_t a_chunkID) override
void InitItemImpl() override
MagicSystem::CastingType GetCastingType() const override
MagicSystem::SpellType GetSpellType() const override
static constexpr auto RTTI
Definition: ScrollItem.h:21
Definition: SpellItem.h:16
Definition: TESFile.h:14
Definition: TESModelTextureSwap.h:10
Definition: TESValueForm.h:8
Definition: TESWeightForm.h:8
SpellType
Definition: MagicSystem.h:56
CastingType
Definition: MagicSystem.h:29
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_ScrollItem
Definition: Offsets_RTTI.h:5800
ActorValue
Definition: ActorValues.h:6
Definition: MagicItem.h:41
Definition: ScrollItem.h:25
RecordFlag
Definition: ScrollItem.h:27
@ kIgnored
Definition: ScrollItem.h:29
@ kDeleted
Definition: ScrollItem.h:28