CommonLibVR
BGSColorForm.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/C/Color.h"
4 #include "RE/F/FormTypes.h"
5 #include "RE/T/TESForm.h"
6 #include "RE/T/TESFullName.h"
7 
8 namespace RE
9 {
10  class BGSColorForm :
11  public TESForm, // 00
12  public TESFullName // 20
13  {
14  public:
15  inline static constexpr auto RTTI = RTTI_BGSColorForm;
16  inline static constexpr auto VTABLE = VTABLE_BGSColorForm;
17  inline static constexpr auto FORMTYPE = FormType::ColorForm;
18 
19  enum class Flag // FNAM
20  {
21  kNone = 0,
22  kPlayable = 1 << 0
23  };
24 
25  struct RecordFlags
26  {
27  enum RecordFlag : std::uint32_t
28  {
29  kDeleted = 1 << 5,
30  kIgnored = 1 << 12
31  };
32  };
33 
34  ~BGSColorForm() override; // 00
35 
36  // override (TESForm)
37  void InitializeData() override; // 04
38  void ClearData() override; // 05
39  bool Load(TESFile* a_mod) override; // 06
40 
41  [[nodiscard]] bool IsPlayable() const;
42 
43  // memebrs
44  Color color; // 30 - CNAM
46  private:
47  KEEP_FOR_RE()
48  };
49  static_assert(sizeof(BGSColorForm) == 0x38);
50 }
#define KEEP_FOR_RE()
Definition: PCH.h:713
Definition: BGSColorForm.h:13
static constexpr auto VTABLE
Definition: BGSColorForm.h:16
Color color
Definition: BGSColorForm.h:44
void InitializeData() override
static constexpr auto FORMTYPE
Definition: BGSColorForm.h:17
~BGSColorForm() override
static constexpr auto RTTI
Definition: BGSColorForm.h:15
bool Load(TESFile *a_mod) override
Flag
Definition: BGSColorForm.h:20
bool IsPlayable() const
stl::enumeration< Flag, std::uint32_t > flags
Definition: BGSColorForm.h:45
void ClearData() override
Definition: TESFile.h:17
Definition: TESForm.h:40
Definition: TESFullName.h:9
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BGSColorForm(static_cast< std::uint64_t >(513992))
constexpr std::array< REL::ID, 2 > VTABLE_BGSColorForm
Definition: Offsets_VTABLE.h:8599
Definition: BGSColorForm.h:26
RecordFlag
Definition: BGSColorForm.h:28
@ kDeleted
Definition: BGSColorForm.h:29
@ kIgnored
Definition: BGSColorForm.h:30
Definition: Color.h:8