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