CommonLibSSE (Parapets fork)
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
EXTRADATATYPE
=
ExtraDataType::kEnchantment
;
14
15
ExtraEnchantment
();
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
24
EnchantmentItem
*
enchantment
;
// 10
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
}
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::pad1B
std::uint8_t pad1B
Definition:
ExtraEnchantment.h:27
RE::ExtraEnchantment::charge
std::uint16_t charge
Definition:
ExtraEnchantment.h:25
RE::ExtraEnchantment::removeOnUnequip
bool removeOnUnequip
Definition:
ExtraEnchantment.h:26
RE::ExtraEnchantment::pad1C
std::uint32_t pad1C
Definition:
ExtraEnchantment.h:28
RE::ExtraEnchantment::~ExtraEnchantment
~ExtraEnchantment() override=default
RE::ExtraEnchantment::enchantment
EnchantmentItem * enchantment
Definition:
ExtraEnchantment.h:24
RE::ExtraEnchantment::EXTRADATATYPE
static constexpr auto EXTRADATATYPE
Definition:
ExtraEnchantment.h:13
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::RTTI_ExtraEnchantment
constexpr REL::ID RTTI_ExtraEnchantment
Definition:
Offsets_RTTI.h:4667
RE::ExtraDataType
ExtraDataType
Definition:
ExtraDataTypes.h:173
RE::ExtraDataType::kEnchantment
@ kEnchantment
CommonLibSSE
include
RE
E
ExtraEnchantment.h
Generated by
1.9.1