CommonLibVR
TESEnchantableForm.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "RE/M/MagicSystem.h"
5 
6 namespace RE
7 {
8  class EnchantmentItem;
9 
11  {
12  public:
13  inline static constexpr auto RTTI = RTTI_TESEnchantableForm;
14  inline static constexpr auto VTABLE = VTABLE_TESEnchantableForm;
15 
16  ~TESEnchantableForm() override; // 00
17 
18  // override (BaseFormComponent)
19  void InitializeDataComponent() override; // 01
20  void ClearDataComponent() override; // 02
21  void CopyComponent(BaseFormComponent* a_rhs) override; // 03
22 
23  // add
24  [[nodiscard]] virtual MagicSystem::CastingType GetCastingType() const; // 04 - { return castingType; }
25 
26  // members
29  std::uint16_t amountofEnchantment; // 12 - EAMT
30  std::uint32_t pad14; // 14
31  private:
32  KEEP_FOR_RE()
33  };
34  static_assert(sizeof(TESEnchantableForm) == 0x18);
35 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: BaseFormComponent.h:8
Definition: EnchantmentItem.h:10
Definition: TESEnchantableForm.h:11
static constexpr auto VTABLE
Definition: TESEnchantableForm.h:14
void InitializeDataComponent() override
void CopyComponent(BaseFormComponent *a_rhs) override
std::uint16_t amountofEnchantment
Definition: TESEnchantableForm.h:29
~TESEnchantableForm() override
void ClearDataComponent() override
static constexpr auto RTTI
Definition: TESEnchantableForm.h:13
std::uint32_t pad14
Definition: TESEnchantableForm.h:30
stl::enumeration< MagicSystem::CastingType, std::uint16_t > castingType
Definition: TESEnchantableForm.h:28
virtual MagicSystem::CastingType GetCastingType() const
EnchantmentItem * formEnchanting
Definition: TESEnchantableForm.h:27
CastingType
Definition: MagicSystem.h:35
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_TESEnchantableForm(static_cast< std::uint64_t >(513876))
constexpr std::array< REL::ID, 1 > VTABLE_TESEnchantableForm
Definition: Offsets_VTABLE.h:12821