From 46a41db4c5183e36c6bcadcb6cfe5ed871369328 Mon Sep 17 00:00:00 2001 From: Madeesh Kannan Date: Mon, 18 Sep 2023 21:05:52 +0200 Subject: [PATCH] feat: add `TESResponse` (#69) --- CommonLibSF/include/RE/Starfield.h | 1 + CommonLibSF/include/RE/T/TESResponse.h | 20 ++++++++++++++++++++ CommonLibSF/src/RE/T/TESResponse.cpp | 4 ++++ 3 files changed, 25 insertions(+) create mode 100644 CommonLibSF/include/RE/T/TESResponse.h create mode 100644 CommonLibSF/src/RE/T/TESResponse.cpp diff --git a/CommonLibSF/include/RE/Starfield.h b/CommonLibSF/include/RE/Starfield.h index 0ab798ef..dddd692d 100644 --- a/CommonLibSF/include/RE/Starfield.h +++ b/CommonLibSF/include/RE/Starfield.h @@ -88,5 +88,6 @@ #include "RE/T/TESQuest.h" #include "RE/T/TESRace.h" #include "RE/T/TESRaceForm.h" +#include "RE/T/TESResponse.h" #include "RE/T/TESSpellList.h" #include "RE/T/TESTopicInfo.h" diff --git a/CommonLibSF/include/RE/T/TESResponse.h b/CommonLibSF/include/RE/T/TESResponse.h new file mode 100644 index 00000000..88e5d099 --- /dev/null +++ b/CommonLibSF/include/RE/T/TESResponse.h @@ -0,0 +1,20 @@ +#pragma once + +#include "RE/B/BGSLocalizedString.h" + +namespace RE +{ + // 28 + class TESResponse + { + public: + BGSLocalizedString responseText; // 00 + TESResponse* next; // 08 + std::uint32_t unk10; // 10 - BSPointerHandleRef? + float unk14; // 14 - Init to -1 + std::uint64_t unk18; // 18 + std::uint32_t unk20; // 20 + std::uint32_t unk24; // 24 + }; + static_assert(sizeof(TESResponse) == 0x28); +} diff --git a/CommonLibSF/src/RE/T/TESResponse.cpp b/CommonLibSF/src/RE/T/TESResponse.cpp new file mode 100644 index 00000000..6c5b47be --- /dev/null +++ b/CommonLibSF/src/RE/T/TESResponse.cpp @@ -0,0 +1,4 @@ +#include "RE/T/TESResponse.h" + +namespace RE +{}