Skip to content

Commit

Permalink
Merge pull request #92 from Vermunds/dev
Browse files Browse the repository at this point in the history
Map Menu findings and basic BGSTerrainManager RE
  • Loading branch information
powerof3 authored Dec 5, 2023
2 parents d9709a0 + 133942f commit ea6365e
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 23 deletions.
1 change: 1 addition & 0 deletions cmake/sourcelist.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
42 changes: 42 additions & 0 deletions include/RE/B/BGSTerrainManager.h
Original file line number Diff line number Diff line change
@@ -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);
}
43 changes: 20 additions & 23 deletions include/RE/M/MapMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,29 +50,26 @@ namespace RE
}

// members
BSTSmartPointer<MapMoveHandler> moveHandler; // 00040
BSTSmartPointer<MapLookHandler> lookHandler; // 00048
BSTSmartPointer<MapZoomHandler> zoomHandler; // 00050
ObjectRefHandle mapMarker; // 00058
LocalMapMenu localMapMenu; // 00060
RefHandle unk30460; // 30460
std::uint32_t unk30464; // 30464
std::uint32_t unk30468; // 30468
std::uint32_t unk3046C; // 3046C
BSTArray<void*> unk30470; // 30470
BSTArray<void*> unk30488; // 30488
MapCamera camera; // 304A0
std::uint64_t unk30530; // 30530
TESWorldSpace* worldSpace; // 30538
GFxValue unk30540; // 30540
std::uint64_t unk30558; // 30558
std::uint64_t unk30560; // 30560
std::uint64_t unk30568; // 30568
std::uint32_t unk30570; // 30570
BSSoundHandle unk30574; // 30574
std::uint64_t unk30580; // 30580
std::uint64_t unk30588; // 30588
std::uint64_t unk30590; // 30590
BSTSmartPointer<MapMoveHandler> moveHandler; // 00040
BSTSmartPointer<MapLookHandler> lookHandler; // 00048
BSTSmartPointer<MapZoomHandler> zoomHandler; // 00050
ObjectRefHandle mapMarker; // 00058
LocalMapMenu localMapMenu; // 00060
RefHandle unk30460; // 30460
NiPoint3 playerMarkerPosition; // 30464
BSTArray<void*> unk30470; // 30470
BSTArray<void*> unk30488; // 30488
MapCamera camera; // 304A0
std::uint64_t unk30530; // 30530
TESWorldSpace* worldSpace; // 30538
GFxValue unk30540; // 30540
std::uint32_t unk30558; // 30558
NiPoint3 unk3055C; // 3055C
NiPoint3 unk30568; // 30568
BSSoundHandle unk30574; // 30574
std::uint64_t unk30580; // 30580
std::uint64_t unk30588; // 30588
std::uint64_t unk30590; // 30590
};
static_assert(sizeof(MapMenu) == 0x30598);
}
1 change: 1 addition & 0 deletions include/RE/Skyrim.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,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"
Expand Down

0 comments on commit ea6365e

Please sign in to comment.