CommonLibSSE (Parapets fork)
ExtraHotkey.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 ExtraHotkey : public BSExtraData
9  {
10  public:
11  inline static constexpr auto RTTI = RTTI_ExtraHotkey;
12  inline static constexpr auto EXTRADATATYPE = ExtraDataType::kHotkey;
13 
14  enum class Hotkey
15  {
16  kUnbound = static_cast<std::underlying_type_t<Hotkey>>(-1),
17  kSlot1 = 0,
18  kSlot2 = 1,
19  kSlot3 = 2,
20  kSlot4 = 3,
21  kSlot5 = 4,
22  kSlot6 = 5,
23  kSlot7 = 6,
24  kSlot8 = 7
25  };
26 
28  explicit ExtraHotkey(Hotkey a_hotkey);
29  ~ExtraHotkey() override = default; // 00
30 
31  // override (BSExtraData)
32  ExtraDataType GetType() const override; // 01 - { return kHotkey }
33  bool IsNotEqual(const BSExtraData* a_rhs) const override; // 02 - { hotkey != a_rhs->hotkey; }
34 
35  // members
37  std::uint8_t unk11; // 11
38  std::uint16_t unk12; // 12
39  std::uint32_t unk14; // 14
40  };
41  static_assert(sizeof(ExtraHotkey) == 0x18);
42 }
Definition: BSExtraData.h:9
Definition: ExtraHotkey.h:9
std::uint32_t unk14
Definition: ExtraHotkey.h:39
Hotkey
Definition: ExtraHotkey.h:15
static constexpr auto RTTI
Definition: ExtraHotkey.h:11
ExtraDataType GetType() const override
std::uint16_t unk12
Definition: ExtraHotkey.h:38
static constexpr auto EXTRADATATYPE
Definition: ExtraHotkey.h:12
std::uint8_t unk11
Definition: ExtraHotkey.h:37
ExtraHotkey(Hotkey a_hotkey)
stl::enumeration< Hotkey, std::uint8_t > hotkey
Definition: ExtraHotkey.h:36
bool IsNotEqual(const BSExtraData *a_rhs) const override
~ExtraHotkey() override=default
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_ExtraHotkey
Definition: Offsets_RTTI.h:4690
ExtraDataType
Definition: ExtraDataTypes.h:173