CommonLibSSE NG
BGSAssociationType.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "RE/B/BSFixedString.h"
4 #include "RE/F/FormTypes.h"
5 #include "RE/T/TESForm.h"
6 
7 namespace RE
8 {
9  class BGSAssociationType : public TESForm
10  {
11  public:
12  inline static constexpr auto RTTI = RTTI_BGSAssociationType;
13  inline static constexpr auto VTABLE = VTABLE_BGSAssociationType;
14  inline static constexpr auto FORMTYPE = FormType::AssociationType;
15 
16  enum class FLAGS // DATA
17  {
18  kNone = 0,
19  kFamily = 1 << 0
20  };
21 
22  struct RecordFlags
23  {
24  enum RecordFlag : std::uint32_t
25  {
26  kDeleted = 1 << 5,
27  kIgnored = 1 << 12
28  };
29  };
30 
31  struct Members
32  {
33  enum
34  {
37 
38  kTotal
39  };
40  };
41 
42  struct Sexes
43  {
44  enum
45  {
48 
49  kTotal
50  };
51  };
52 
53  ~BGSAssociationType() override; // 00
54 
55  // override (TESForm)
56  void InitializeData() override; // 04
57  bool Load(TESFile* a_mod) override; // 06
58 
59  // members
62  std::uint32_t pad44; // 44
63  };
64  static_assert(sizeof(BGSAssociationType) == 0x48);
65 }
Definition: BGSAssociationType.h:10
~BGSAssociationType() override
static constexpr auto FORMTYPE
Definition: BGSAssociationType.h:14
static constexpr auto VTABLE
Definition: BGSAssociationType.h:13
stl::enumeration< FLAGS, std::uint32_t > flags
Definition: BGSAssociationType.h:61
std::uint32_t pad44
Definition: BGSAssociationType.h:62
void InitializeData() override
FLAGS
Definition: BGSAssociationType.h:17
BSFixedString associationLabels[Members::kTotal][Sexes::kTotal]
Definition: BGSAssociationType.h:60
bool Load(TESFile *a_mod) override
static constexpr auto RTTI
Definition: BGSAssociationType.h:12
Definition: TESFile.h:17
Definition: TESForm.h:36
Definition: AbsorbEffect.h:6
constexpr REL::VariantID RTTI_BGSAssociationType(514000, 393133, 0x1ee43c0)
constexpr std::array< REL::VariantID, 1 > VTABLE_BGSAssociationType
Definition: Offsets_VTABLE.h:842
Definition: BGSAssociationType.h:32
@ kTotal
Definition: BGSAssociationType.h:38
@ kChild
Definition: BGSAssociationType.h:36
@ kParent
Definition: BGSAssociationType.h:35
Definition: BGSAssociationType.h:23
RecordFlag
Definition: BGSAssociationType.h:25
@ kDeleted
Definition: BGSAssociationType.h:26
@ kIgnored
Definition: BGSAssociationType.h:27
Definition: BGSAssociationType.h:43
@ kMale
Definition: BGSAssociationType.h:46
@ kTotal
Definition: BGSAssociationType.h:49
@ kFemale
Definition: BGSAssociationType.h:47