CommonLibVR
TESKey.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/F/FormTypes.h"
4 #include "RE/T/TESObjectMISC.h"
5 
6 namespace RE
7 {
8  class TESKey : public TESObjectMISC
9  {
10  public:
11  inline static constexpr auto RTTI = RTTI_TESKey;
12  inline static constexpr auto VTABLE = VTABLE_TESKey;
13  inline static constexpr auto FORMTYPE = FormType::KeyMaster;
14 
15  struct RecordFlags
16  {
17  enum RecordFlag : std::uint32_t
18  {
19  kNonPlayable = 1 << 2,
20  kDeleted = 1 << 5,
21  kIgnored = 1 << 12
22  };
23  };
24 
25  ~TESKey() override; // 00
26 
27  // override (BGSKeywordForm)
28  [[nodiscard]] BGSKeyword* GetDefaultKeyword() const override; // 05
29  private:
30  KEEP_FOR_RE()
31  };
32  static_assert(sizeof(TESKey) == 0x100);
33 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: BGSKeyword.h:10
Definition: TESKey.h:9
BGSKeyword * GetDefaultKeyword() const override
static constexpr auto RTTI
Definition: TESKey.h:11
~TESKey() override
static constexpr auto VTABLE
Definition: TESKey.h:12
static constexpr auto FORMTYPE
Definition: TESKey.h:13
Definition: TESObjectMISC.h:28
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_TESKey(static_cast< std::uint64_t >(513893))
constexpr std::array< REL::ID, 10 > VTABLE_TESKey
Definition: Offsets_VTABLE.h:12839
Definition: TESKey.h:16
RecordFlag
Definition: TESKey.h:18
@ kNonPlayable
Definition: TESKey.h:19
@ kIgnored
Definition: TESKey.h:21
@ kDeleted
Definition: TESKey.h:20