CommonLibSSE (powerof3)
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 FORMTYPE = FormType::ColorForm;
17 
18  enum class Flag // FNAM
19  {
20  kNone = 0,
21  kPlayable = 1 << 0
22  };
23 
24  struct RecordFlags
25  {
26  enum RecordFlag : std::uint32_t
27  {
28  kDeleted = 1 << 5,
29  kIgnored = 1 << 12
30  };
31  };
32 
33  ~BGSColorForm() override; // 00
34 
35  // override (TESForm)
36  void InitializeData() override; // 04
37  void ClearData() override; // 05
38  bool Load(TESFile* a_mod) override; // 06
39 
40  [[nodiscard]] bool IsPlayable() const;
41 
42  // memebrs
43  Color color; // 30 - CNAM
45  };
46  static_assert(sizeof(BGSColorForm) == 0x38);
47 }
Definition: BGSColorForm.h:13
Color color
Definition: BGSColorForm.h:43
void InitializeData() override
static constexpr auto FORMTYPE
Definition: BGSColorForm.h:16
~BGSColorForm() override
static constexpr auto RTTI
Definition: BGSColorForm.h:15
bool Load(TESFile *a_mod) override
Flag
Definition: BGSColorForm.h:19
bool IsPlayable() const
stl::enumeration< Flag, std::uint32_t > flags
Definition: BGSColorForm.h:44
void ClearData() override
Definition: TESFile.h:14
Definition: TESForm.h:34
Definition: TESFullName.h:9
Definition: AbsorbEffect.h:6
constexpr REL::ID RTTI_BGSColorForm
Definition: Offsets_RTTI.h:1276
Definition: BGSColorForm.h:25
RecordFlag
Definition: BGSColorForm.h:27
@ kDeleted
Definition: BGSColorForm.h:28
@ kIgnored
Definition: BGSColorForm.h:29
Definition: Color.h:6