CommonLibSSE NG
Loading...
Searching...
No Matches
BGSScene.h
Go to the documentation of this file.
1#pragma once
2
3#include "RE/B/BSTArray.h"
4#include "RE/F/FormTypes.h"
5#include "RE/T/TESCondition.h"
6#include "RE/T/TESForm.h"
7
8namespace RE
9{
10 class BGSSceneAction;
11
12 enum class SCENE_ACTOR_FLAG // LNAM
13 {
14 kNone = 0,
15 kNoPlayerActivation = 1 << 0,
16 kOptional = 1 << 1,
17 kRunOnlyScenePackages = 1 << 2,
18 kNoCommandState = 1 << 3
19 };
20
22 {
23 public:
24 // members
28 };
29 static_assert(sizeof(BGSScenePhase) == 0x18);
30
31 class BGSScene : public TESForm
32 {
33 public:
34 inline static constexpr auto RTTI = RTTI_BGSScene;
35 inline static constexpr auto VTABLE = VTABLE_BGSScene;
36 inline static constexpr auto FORMTYPE = FormType::Scene;
37
38 enum class Flag
39 {
40 kNone = 0,
41 kBeginOnQuestStart = 1 << 0,
42 kStopOnQuestEnd = 1 << 1,
44 kInterruptible = 1 << 4
45 };
46
47 enum class BehaviourFlag // DNAM
48 {
49 kNone = 0,
50 kDeathPause = 1 << 0, // unused
51 kDeathEnd = 1 << 1,
52 kCombatPause = 1 << 2,
53 kCombatEnd = 1 << 3,
54 kDialoguePause = 1 << 4,
55 kDialogueEnd = 1 << 5,
56 kOBS_COMPause = 1 << 6,
57 kOBS_COMEnd = 1 << 7
58 };
59
61 {
62 enum ChangeFlag : std::uint32_t
63 {
64 kActive = (std::uint32_t)1 << 31
65 };
66 };
67
69 {
70 enum RecordFlag : std::uint32_t
71 {
72 kDeleted = 1 << 5,
73 kIgnored = 1 << 12
74 };
75 };
76
77 ~BGSScene() override; // 00
78
79 // override (TESForm)
80 void InitializeData() override; // 05
81 bool Load(TESFile* a_mod) override; // 06
82 void SaveGame(BGSSaveFormBuffer* a_buf) override; // 0E
83 void LoadGame(BGSLoadFormBuffer* a_buf) override; // 0F
84 void InitLoadGame(BGSLoadFormBuffer* a_buf) override; // 10
85 void Revert(BGSLoadFormBuffer* a_buf) override; // 12
86 void InitItemImpl() override; // 13
87
88 // members
94 TESQuest* parentQuest; // 98 - PNAM
96 std::uint32_t padA4; // A4
98 std::uint32_t unkB0; // B0
99 std::uint32_t unkB4; // B4
100 std::uint32_t unkB8; // B8
101 std::uint32_t unkBC; // BC
102 std::uint32_t unkC0; // C0
103 std::uint32_t padC4; // C4
104 };
105 static_assert(sizeof(BGSScene) == 0xC8);
106}
Definition BGSLoadFormBuffer.h:11
Definition BGSScene.h:32
TESCondition conditions
Definition BGSScene.h:97
std::uint32_t unkB0
Definition BGSScene.h:98
BSTArray< BGSSceneAction * > actions
Definition BGSScene.h:93
BSTArray< FormID > actors
Definition BGSScene.h:90
void LoadGame(BGSLoadFormBuffer *a_buf) override
static constexpr auto RTTI
Definition BGSScene.h:34
BehaviourFlag
Definition BGSScene.h:48
static constexpr auto VTABLE
Definition BGSScene.h:35
void InitializeData() override
void InitLoadGame(BGSLoadFormBuffer *a_buf) override
BSTArray< stl::enumeration< SCENE_ACTOR_FLAG, std::uint32_t > > actorFlags
Definition BGSScene.h:91
bool Load(TESFile *a_mod) override
std::uint32_t padA4
Definition BGSScene.h:96
stl::enumeration< Flag, std::uint32_t > flags
Definition BGSScene.h:95
void InitItemImpl() override
~BGSScene() override
std::uint32_t unkBC
Definition BGSScene.h:101
void SaveGame(BGSSaveFormBuffer *a_buf) override
std::uint32_t padC4
Definition BGSScene.h:103
std::uint32_t unkB4
Definition BGSScene.h:99
std::uint32_t unkC0
Definition BGSScene.h:102
void Revert(BGSLoadFormBuffer *a_buf) override
Flag
Definition BGSScene.h:39
static constexpr auto FORMTYPE
Definition BGSScene.h:36
std::uint32_t unkB8
Definition BGSScene.h:100
BSTArray< stl::enumeration< BehaviourFlag, std::uint32_t > > actorProgressionFlags
Definition BGSScene.h:92
TESQuest * parentQuest
Definition BGSScene.h:94
BSTArray< BGSScenePhase * > phases
Definition BGSScene.h:89
Definition BGSScene.h:22
TESCondition startConditions
Definition BGSScene.h:25
BGSStoryManagerQuestNode * questNode
Definition BGSScene.h:27
TESCondition completionConditions
Definition BGSScene.h:26
Definition BGSStoryManagerQuestNode.h:11
Definition BSTArray.h:377
Definition TESCondition.h:987
Definition TESFile.h:15
Definition TESForm.h:35
Definition TESQuest.h:189
Definition PCH.h:223
Definition AbsorbEffect.h:6
constexpr std::array< REL::VariantID, 1 > VTABLE_BGSScene
Definition Offsets_VTABLE.h:901
SCENE_ACTOR_FLAG
Definition BGSScene.h:13
constexpr REL::VariantID RTTI_BGSScene(513909, 392447, 0x1ed9838)
Definition BGSScene.h:61
ChangeFlag
Definition BGSScene.h:63
@ kActive
Definition BGSScene.h:64
Definition BGSScene.h:69
RecordFlag
Definition BGSScene.h:71
@ kIgnored
Definition BGSScene.h:73
@ kDeleted
Definition BGSScene.h:72