Skip to content

Commit

Permalink
feat: TESQuest
Browse files Browse the repository at this point in the history
  • Loading branch information
qudix committed Oct 2, 2024
1 parent 41d7485 commit 0981106
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
13 changes: 13 additions & 0 deletions include/RE/B/BGSStoryManagerTreeForm.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#pragma once

#include "RE/T/TESForm.h"

namespace RE
{
class __declspec(novtable) BGSStoryManagerTreeForm :
public TESForm
{
public:
SF_RTTI_VTABLE(BGSStoryManagerTreeForm);
};
}
1 change: 1 addition & 0 deletions include/RE/Starfield.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
#include "RE/B/BGSSpeechChallengeObject.h"
#include "RE/B/BGSStar.h"
#include "RE/B/BGSStaticCollection.h"
#include "RE/B/BGSStoryManagerTreeForm.h"
#include "RE/B/BGSStoryTeller.h"
#include "RE/B/BGSSunPresetForm.h"
#include "RE/B/BGSSurfaceBlock.h"
Expand Down
22 changes: 20 additions & 2 deletions include/RE/T/TESQuest.h
Original file line number Diff line number Diff line change
@@ -1,13 +1,31 @@
#pragma once

#include "RE/T/TESForm.h"
#include "RE/B/BGSStoryManagerTreeForm.h"

namespace RE
{
class TESQuest : public TESForm
class __declspec(novtable) TESQuest :
public BGSStoryManagerTreeForm
{
public:
SF_RTTI_VTABLE(TESQuest);
SF_FORMTYPE(QUST);

// DNAM
struct QUEST_DATA
{
// members
float questDelayTime; // 0
std::uint16_t flags; // 4
std::int8_t priority; // 6
std::uint8_t questType; // 7
};
static_assert(sizeof(QUEST_DATA) == 0x8);

~TESQuest() override; // 00

// members
std::byte pad38[0xD6]; // 038
QUEST_DATA data; // 108
};
}

0 comments on commit 0981106

Please sign in to comment.