CommonLibSSE (powerof3)
ExtraFlags.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
6
namespace
RE
7
{
8
class
ExtraFlags
:
public
BSExtraData
9
{
10
public
:
11
inline
static
constexpr
auto
RTTI
=
RTTI_ExtraFlags
;
12
inline
static
constexpr
auto
EXTRADATATYPE
=
ExtraDataType::kFlags
;
13
14
enum class
Flag
15
{
16
kNone
= 0,
17
kBlockActivate
= 1 << 0,
18
kBlockPlayerActivate
= 1 << 1,
19
kBlockLoadEvents
= 1 << 2,
20
kBlockActivateText
= 1 << 3,
21
kPlayerHasTaken
= 1 << 5
22
};
23
24
~ExtraFlags
()
override
;
// 00
25
26
// override (BSExtraData)
27
[[nodiscard]]
ExtraDataType
GetType
()
const override
;
// 01 - { return kFlags; }
28
29
[[nodiscard]] constexpr
bool
IsActivationBlocked
() const noexcept {
return
flags
.
all
(
Flag::kBlockActivate
); }
30
31
// members
32
stl::enumeration<Flag, std::uint32_t>
flags
;
// 10
33
std::uint32_t
pad14
;
// 14
34
};
35
static_assert(
sizeof
(
ExtraFlags
) == 0x18);
36
}
BSExtraData.h
ExtraDataTypes.h
RE::BSExtraData
Definition:
BSExtraData.h:9
RE::ExtraFlags
Definition:
ExtraFlags.h:9
RE::ExtraFlags::EXTRADATATYPE
static constexpr auto EXTRADATATYPE
Definition:
ExtraFlags.h:12
RE::ExtraFlags::~ExtraFlags
~ExtraFlags() override
RE::ExtraFlags::Flag
Flag
Definition:
ExtraFlags.h:15
RE::ExtraFlags::Flag::kNone
@ kNone
RE::ExtraFlags::Flag::kBlockActivate
@ kBlockActivate
RE::ExtraFlags::Flag::kBlockLoadEvents
@ kBlockLoadEvents
RE::ExtraFlags::Flag::kBlockPlayerActivate
@ kBlockPlayerActivate
RE::ExtraFlags::Flag::kBlockActivateText
@ kBlockActivateText
RE::ExtraFlags::Flag::kPlayerHasTaken
@ kPlayerHasTaken
RE::ExtraFlags::RTTI
static constexpr auto RTTI
Definition:
ExtraFlags.h:11
RE::ExtraFlags::pad14
std::uint32_t pad14
Definition:
ExtraFlags.h:33
RE::ExtraFlags::GetType
ExtraDataType GetType() const override
RE::ExtraFlags::flags
stl::enumeration< Flag, std::uint32_t > flags
Definition:
ExtraFlags.h:32
RE::ExtraFlags::IsActivationBlocked
constexpr bool IsActivationBlocked() const noexcept
Definition:
ExtraFlags.h:29
SKSE::stl::enumeration< Flag, std::uint32_t >
SKSE::stl::enumeration::all
constexpr bool all(Args... a_args) const noexcept requires(std
Definition:
PCH.h:287
RE
Definition:
AbsorbEffect.h:6
RE::RTTI_ExtraFlags
constexpr REL::ID RTTI_ExtraFlags
Definition:
Offsets_RTTI.h:4671
RE::ExtraDataType
ExtraDataType
Definition:
ExtraDataTypes.h:173
RE::ExtraDataType::kFlags
@ kFlags
CommonLibSSE
include
RE
E
ExtraFlags.h
Generated by
1.9.1