CommonLibSSE (powerof3)
Loading...
Searching...
No Matches
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
{
9
class
ExtraEnchantment
:
public
BSExtraData
10
{
11
public
:
12
inline
static
constexpr
auto
RTTI
=
RTTI_ExtraEnchantment
;
13
inline
static
constexpr
auto
VTABLE
=
VTABLE_ExtraEnchantment
;
14
inline
static
constexpr
auto
EXTRADATATYPE
=
ExtraDataType::kEnchantment
;
15
16
ExtraEnchantment
();
17
ExtraEnchantment
(
EnchantmentItem
* a_enchantment, std::uint16_t a_charge,
bool
a_removeOnUnequip =
false
);
18
~ExtraEnchantment
()
override
=
default
;
// 00
19
20
// override(BSExtraData)
21
ExtraDataType
GetType
()
const override
;
// 01 - { return kEnchantment; }
22
bool
IsNotEqual
(
const
BSExtraData
* a_rhs)
const override
;
// 02 - { return enchantment != a_rhs->enchantment || charge != a_rhs->charge || removeOnUnequip != a_rhs->removeOnUnequip; }
23
24
// members
25
EnchantmentItem
*
enchantment
;
// 10
26
std::uint16_t
charge
;
// 18
27
bool
removeOnUnequip
;
// 1A
28
std::uint8_t
pad1B
;
// 1B
29
std::uint32_t
pad1C
;
// 1C
30
};
31
static_assert
(
sizeof
(
ExtraEnchantment
) == 0x20);
32
}
BSExtraData.h
ExtraDataTypes.h
FormTypes.h
RE::BSExtraData
Definition
BSExtraData.h:9
RE::EnchantmentItem
Definition
EnchantmentItem.h:10
RE::ExtraEnchantment
Definition
ExtraEnchantment.h:10
RE::ExtraEnchantment::VTABLE
static constexpr auto VTABLE
Definition
ExtraEnchantment.h:13
RE::ExtraEnchantment::pad1B
std::uint8_t pad1B
Definition
ExtraEnchantment.h:28
RE::ExtraEnchantment::charge
std::uint16_t charge
Definition
ExtraEnchantment.h:26
RE::ExtraEnchantment::removeOnUnequip
bool removeOnUnequip
Definition
ExtraEnchantment.h:27
RE::ExtraEnchantment::pad1C
std::uint32_t pad1C
Definition
ExtraEnchantment.h:29
RE::ExtraEnchantment::~ExtraEnchantment
~ExtraEnchantment() override=default
RE::ExtraEnchantment::enchantment
EnchantmentItem * enchantment
Definition
ExtraEnchantment.h:25
RE::ExtraEnchantment::EXTRADATATYPE
static constexpr auto EXTRADATATYPE
Definition
ExtraEnchantment.h:14
RE::ExtraEnchantment::IsNotEqual
bool IsNotEqual(const BSExtraData *a_rhs) const override
RE::ExtraEnchantment::GetType
ExtraDataType GetType() const override
RE::ExtraEnchantment::RTTI
static constexpr auto RTTI
Definition
ExtraEnchantment.h:12
RE::ExtraEnchantment::ExtraEnchantment
ExtraEnchantment(EnchantmentItem *a_enchantment, std::uint16_t a_charge, bool a_removeOnUnequip=false)
RE::ExtraEnchantment::ExtraEnchantment
ExtraEnchantment()
RE
Definition
AbsorbEffect.h:6
RE::VTABLE_ExtraEnchantment
constexpr std::array< REL::ID, 1 > VTABLE_ExtraEnchantment
Definition
Offsets_VTABLE.h:11522
RE::RTTI_ExtraEnchantment
constexpr REL::ID RTTI_ExtraEnchantment(static_cast< std::uint64_t >(684695))
RE::ExtraDataType
ExtraDataType
Definition
ExtraDataTypes.h:173
RE::ExtraDataType::kEnchantment
@ kEnchantment
CommonLibSSE
include
RE
E
ExtraEnchantment.h
Generated by
1.9.8