CommonLibSSE (powerof3)
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
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 bool isPlaying; // B0
99 std::uint8_t unkB1; // B1
100 std::uint8_t unkB2; // B2
101 std::uint8_t unkB3; // B3
102 std::uint32_t unkB4; // B4
103 std::uint32_t unkB8; // B8
104 std::uint32_t unkBC; // BC
105 std::uint32_t unkC0; // C0
106 std::uint32_t padC4; // C4
107 };
108 static_assert(sizeof(BGSScene) == 0xC8);
109}
Definition EnumSet.h:9
Definition BGSLoadFormBuffer.h:11
Definition BGSSaveFormBuffer.h:8
Definition BGSScene.h:22
TESCondition startConditions
Definition BGSScene.h:25
BGSStoryManagerQuestNode * questNode
Definition BGSScene.h:27
TESCondition completionConditions
Definition BGSScene.h:26
Definition BGSScene.h:32
REX::EnumSet< Flag, std::uint32_t > flags
Definition BGSScene.h:95
TESCondition conditions
Definition BGSScene.h:97
BSTArray< REX::EnumSet< SCENE_ACTOR_FLAG, std::uint32_t > > actorFlags
Definition BGSScene.h:91
BSTArray< BGSSceneAction * > actions
Definition BGSScene.h:93
BSTArray< REX::EnumSet< BehaviourFlag, std::uint32_t > > actorProgressionFlags
Definition BGSScene.h:92
BSTArray< FormID > actors
Definition BGSScene.h:90
std::uint8_t unkB2
Definition BGSScene.h:100
void LoadGame(BGSLoadFormBuffer *a_buf) override
static constexpr auto RTTI
Definition BGSScene.h:34
BehaviourFlag
Definition BGSScene.h:48
std::uint8_t unkB1
Definition BGSScene.h:99
static constexpr auto VTABLE
Definition BGSScene.h:35
void InitializeData() override
void InitLoadGame(BGSLoadFormBuffer *a_buf) override
bool isPlaying
Definition BGSScene.h:98
bool Load(TESFile *a_mod) override
std::uint32_t padA4
Definition BGSScene.h:96
std::uint8_t unkB3
Definition BGSScene.h:101
void InitItemImpl() override
~BGSScene() override
std::uint32_t unkBC
Definition BGSScene.h:104
void SaveGame(BGSSaveFormBuffer *a_buf) override
std::uint32_t padC4
Definition BGSScene.h:106
std::uint32_t unkB4
Definition BGSScene.h:102
std::uint32_t unkC0
Definition BGSScene.h:105
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:103
TESQuest * parentQuest
Definition BGSScene.h:94
BSTArray< BGSScenePhase * > phases
Definition BGSScene.h:89
Definition BGSStoryManagerQuestNode.h:11
Definition BSTArray.h:378
Definition TESCondition.h:992
Definition TESFile.h:17
Definition TESForm.h:36
Definition TESQuest.h:189
Definition AbsorbEffect.h:6
constexpr std::array< REL::ID, 1 > VTABLE_BGSScene
Definition Offsets_VTABLE.h:8852
SCENE_ACTOR_FLAG
Definition BGSScene.h:13
constexpr REL::ID RTTI_BGSScene(static_cast< std::uint64_t >(513909))
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