From 0baaa08692dedef2dc3777311dae8762fab5fbba Mon Sep 17 00:00:00 2001 From: Vermunds <33235701+Vermunds@users.noreply.github.com> Date: Sun, 1 Oct 2023 14:27:50 +0200 Subject: [PATCH] Very basic BGSTerrainManager RE --- cmake/sourcelist.cmake | 1 + include/RE/B/BGSTerrainManager.h | 42 ++++++++++++++++++++++++++++++++ include/RE/Skyrim.h | 1 + 3 files changed, 44 insertions(+) create mode 100644 include/RE/B/BGSTerrainManager.h diff --git a/cmake/sourcelist.cmake b/cmake/sourcelist.cmake index 0b257329e..6c48d40f4 100644 --- a/cmake/sourcelist.cmake +++ b/cmake/sourcelist.cmake @@ -191,6 +191,7 @@ set(SOURCES include/RE/B/BGSStoryManagerTreeForm.h include/RE/B/BGSStoryTeller.h include/RE/B/BGSTalkingActivator.h + include/RE/B/BGSTerrainManager.h include/RE/B/BGSTextureModel.h include/RE/B/BGSTextureSet.h include/RE/B/BGSTypedItem.h diff --git a/include/RE/B/BGSTerrainManager.h b/include/RE/B/BGSTerrainManager.h new file mode 100644 index 000000000..cc462d909 --- /dev/null +++ b/include/RE/B/BGSTerrainManager.h @@ -0,0 +1,42 @@ +#pragma once + +namespace RE +{ + class BGSTerrainManager + { + public: + std::uint64_t unk00; // 00 + std::uint64_t unk08; // 08 + std::uint64_t unk10; // 10 + std::uint64_t unk18; // 18 + std::uint64_t unk20; // 20 + std::uint64_t unk28; // 28 + std::uint8_t unk30; // 30 + std::uint8_t unk31; // 31 + bool lodTreesHidden; // 32 + std::uint8_t unk33; // 33 + std::uint8_t unk34; // 34 + std::uint8_t unk35; // 35 + std::uint8_t unk36; // 36 + std::uint8_t unk37; // 37 + std::uint64_t unk38; // 38 + std::uint64_t unk40; // 40 + std::uint64_t unk48; // 48 + std::uint64_t unk50; // 50 + std::uint64_t unk58; // 58 + std::uint64_t unk60; // 60 + std::uint64_t unk68; // 68 + std::uint64_t unk70; // 70 + std::uint64_t unk78; // 78 + std::uint64_t unk80; // 80 + std::uint64_t unk88; // 88 + std::uint64_t unk90; // 90 + std::uint64_t unk98; // 98 + std::uint64_t unkA0; // A0 + std::uint64_t unkA8; // A8 + std::uint64_t unkB0; // B0 + std::uint64_t unkB8; // B8 + std::uint64_t unkC0; // C0 + }; + static_assert(sizeof(BGSTerrainManager) == 0xC8); +} diff --git a/include/RE/Skyrim.h b/include/RE/Skyrim.h index 130f85e59..9d12a5ae9 100644 --- a/include/RE/Skyrim.h +++ b/include/RE/Skyrim.h @@ -195,6 +195,7 @@ #include "RE/B/BGSStoryManagerTreeForm.h" #include "RE/B/BGSStoryTeller.h" #include "RE/B/BGSTalkingActivator.h" +#include "RE/B/BGSTerrainManager.h" #include "RE/B/BGSTextureModel.h" #include "RE/B/BGSTextureSet.h" #include "RE/B/BGSTypedItem.h"