CommonLibSSE NG
BGSStoryManagerNodeBase.h
Go to the documentation of this file.
1 #pragma once
2 
4 #include "RE/T/TESCondition.h"
5 
6 namespace RE
7 {
9  {
10  public:
11  inline static constexpr auto RTTI = RTTI_BGSStoryManagerNodeBase;
12 
13  struct Flags // DNAM
14  {
15  public:
16  enum class NodeFlag
17  {
18  kNone = 0,
19  kRandom = 1 << 0,
21  };
22 
23  enum class QuestFlag
24  {
25  kNone = 0,
26  kDoAllBeforeRepeating = 1 << 0,
27  kSharesEvent = 1 << 1,
28  kNumQuestsToRun = 1 << 2
29  };
30 
31  // members
34  };
35  static_assert(sizeof(Flags) == 0x4);
36 
37  ~BGSStoryManagerNodeBase() override; // 00
38 
39  // override (BGSStoryManagerTreeForm)
40  void InitializeData() override; // 04
41  void ClearData() override; // 05
42  bool Load(TESFile* a_mod) override; // 06
43  void InitItemImpl() override; // 13
44  TESCondition* QConditions() override; // 3D - { return &conditions; }
45 
46  // members
49  std::uint32_t maxQuests; // 38 - XNAM
50  Flags flags; // 3C - DNAM
51  TESCondition conditions; // 40 - CITC
52  };
53  static_assert(sizeof(BGSStoryManagerNodeBase) == 0x48);
54 }
Definition: BGSStoryManagerBranchNode.h:10
Definition: BGSStoryManagerNodeBase.h:9
BGSStoryManagerNodeBase * previousSibling
Definition: BGSStoryManagerNodeBase.h:48
Flags flags
Definition: BGSStoryManagerNodeBase.h:50
std::uint32_t maxQuests
Definition: BGSStoryManagerNodeBase.h:49
BGSStoryManagerBranchNode * parent
Definition: BGSStoryManagerNodeBase.h:47
void InitItemImpl() override
TESCondition * QConditions() override
static constexpr auto RTTI
Definition: BGSStoryManagerNodeBase.h:11
void InitializeData() override
TESCondition conditions
Definition: BGSStoryManagerNodeBase.h:51
bool Load(TESFile *a_mod) override
Definition: BGSStoryManagerTreeForm.h:44
Definition: TESCondition.h:992
Definition: TESFile.h:17
Definition: AbsorbEffect.h:6
constexpr REL::VariantID RTTI_BGSStoryManagerNodeBase(513925, 392552, 0x1edacf8)
Definition: BGSStoryManagerNodeBase.h:14
NodeFlag
Definition: BGSStoryManagerNodeBase.h:17
stl::enumeration< QuestFlag, std::uint16_t > questFags
Definition: BGSStoryManagerNodeBase.h:33
stl::enumeration< NodeFlag, std::uint16_t > nodeFlags
Definition: BGSStoryManagerNodeBase.h:32
QuestFlag
Definition: BGSStoryManagerNodeBase.h:24