CommonLibSSE (powerof3)
ExtraEnchantment.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSExtraData.h"
4 #include "RE/E/ExtraDataTypes.h"
5 #include "RE/F/FormTypes.h"
6 
7 namespace RE
8 {
10  {
11  public:
12  inline static constexpr auto RTTI = RTTI_ExtraEnchantment;
13  inline static constexpr auto EXTRADATATYPE = ExtraDataType::kEnchantment;
14 
16  ExtraEnchantment(EnchantmentItem* a_enchantment, std::uint16_t a_charge, bool a_removeOnUnequip = false);
17  ~ExtraEnchantment() override = default; // 00
18 
19  // override(BSExtraData)
20  ExtraDataType GetType() const override; // 01 - { return kEnchantment; }
21  bool IsNotEqual(const BSExtraData* a_rhs) const override; // 02 - { return enchantment != a_rhs->enchantment || charge != a_rhs->charge || removeOnUnequip != a_rhs->removeOnUnequip; }
22 
23  // members
25  std::uint16_t charge; // 18
26  bool removeOnUnequip; // 1A
27  std::uint8_t pad1B; // 1B
28  std::uint32_t pad1C; // 1C
29  };
30  static_assert(sizeof(ExtraEnchantment) == 0x20);
31 }
Definition: BSExtraData.h:9
Definition: EnchantmentItem.h:10
Definition: ExtraEnchantment.h:10
std::uint8_t pad1B
Definition: ExtraEnchantment.h:27
std::uint16_t charge
Definition: ExtraEnchantment.h:25
bool removeOnUnequip
Definition: ExtraEnchantment.h:26
std::uint32_t pad1C
Definition: ExtraEnchantment.h:28
~ExtraEnchantment() override=default
EnchantmentItem * enchantment
Definition: ExtraEnchantment.h:24
static constexpr auto EXTRADATATYPE
Definition: ExtraEnchantment.h:13
bool IsNotEqual(const BSExtraData *a_rhs) const override
ExtraDataType GetType() const override
static constexpr auto RTTI
Definition: ExtraEnchantment.h:12
ExtraEnchantment(EnchantmentItem *a_enchantment, std::uint16_t a_charge, bool a_removeOnUnequip=false)
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_ExtraEnchantment
Definition: Offsets_RTTI.h:4667
ExtraDataType
Definition: ExtraDataTypes.h:173