Skip to content

Commit

Permalink
Fix namespace mismatching and access modifier (#77)
Browse files Browse the repository at this point in the history
* - fixed namespace mismatching. In Logger.h "add_papyrus_sink" and "remove_papyrus_sink" functions in the SKSE::log namespace

* - fixed access modifier to the MenuModeChangeEvent class

* - Very basic BGSTerrainManager RE and MapMenu findings by @Vermunds

* - Added TintMask definition

* - TintMask minor changes

---------

Co-authored-by: John Stewart <dev@charmedbaryon.tv>
  • Loading branch information
kkEngine and jpstewart committed Mar 24, 2024
1 parent cd61f66 commit 9b7c386
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 24 deletions.
44 changes: 22 additions & 22 deletions include/RE/M/MapMenu.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ namespace RE

struct RUNTIME_DATA
{
#define RUNTIME_DATA_CONTENT \
BSTSmartPointer<MapMoveHandler> moveHandler; /* 00 */ \
BSTSmartPointer<MapLookHandler> lookHandler; /* 08 */ \
BSTSmartPointer<MapZoomHandler> zoomHandler; /* 10 */ \
#define RUNTIME_DATA_CONTENT \
BSTSmartPointer<MapMoveHandler> moveHandler; /* 00 */ \
BSTSmartPointer<MapLookHandler> lookHandler; /* 08 */ \
BSTSmartPointer<MapZoomHandler> zoomHandler; /* 10 */ \
ObjectRefHandle mapMarker; /* 18 */ \
LocalMapMenu localMapMenu; /* 20 */
LocalMapMenu localMapMenu; /* 20 */

RUNTIME_DATA_CONTENT
};
Expand All @@ -98,23 +98,23 @@ namespace RE

struct RUNTIME_DATA2
{
#define RUNTIME_DATA2_CONTENT \
RefHandle unk30460; /* 000 */ \
NiPoint3 playerMarkerPosition; /* 004 */ \
BSTArray<Unk30470Entry*> unk30470; /* 010 */ \
BSTArray<Unk30488Entry*> unk30488; /* 028 */ \
MapCamera camera; /* 040 */ \
std::uint64_t unk30530; /* 0D0 */ \
TESWorldSpace* worldSpace; /* 0D8 */ \
GFxValue unk30540; /* 0E0 */ \
std::uint32_t unk30558; /* 0F8 */ \
NiPoint3 unk3055C; /* 0FC */ \
NiPoint3 unk30568; /* 108 */ \
BSSoundHandle unk30574; /* 114 */ \
std::uint64_t unk30580; /* 120 */ \
std::uint64_t unk30588; /* 128 */ \
std::uint64_t unk30590; /* 130 */

#define RUNTIME_DATA2_CONTENT \
RefHandle unk30460; /* 000 */ \
NiPoint3 playerMarkerPosition; /* 004 */ \
BSTArray<Unk30470Entry*> unk30470; /* 010 */ \
BSTArray<Unk30488Entry*> unk30488; /* 028 */ \
MapCamera camera; /* 040 */ \
std::uint64_t unk30530; /* 0D0 */ \
TESWorldSpace* worldSpace; /* 0D8 */ \
GFxValue unk30540; /* 0E0 */ \
std::uint64_t unk30558; /* 0F8 */ \
std::uint64_t unk30560; /* 100 */ \
std::uint64_t unk30568; /* 108 */ \
std::uint32_t unk30570; /* 110 */ \
BSSoundHandle unk30574; /* 114 */ \
std::uint64_t unk30580; /* 120 */ \
std::uint64_t unk30588; /* 128 */ \
std::uint64_t unk30590; /* 130 */
RUNTIME_DATA2_CONTENT
};
static_assert(sizeof(RUNTIME_DATA2) == 0x138);
Expand Down
2 changes: 1 addition & 1 deletion include/RE/P/PlayerCharacter.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "RE/P/PositionPlayerEvent.h"
#include "RE/T/TESObjectWEAP.h"
#include "RE/T/TESQuest.h"
#include "RE/T/TintMask.h"

namespace RE
{
Expand All @@ -43,7 +44,6 @@ namespace RE
class ObjectListItem;
class TESObject;
class TESObjectREFR;
class TintMask;
class UserEventEnabledEvent;
struct BGSActorCellEvent;
struct BGSActorDeathEvent;
Expand Down
1 change: 1 addition & 0 deletions include/RE/Skyrim.h
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,7 @@
#include "RE/T/TextureFormat.h"
#include "RE/T/ThirdPersonState.h"
#include "RE/T/ThumbstickEvent.h"
#include "RE/T/TintMask.h"
#include "RE/T/TitleSequenceMenu.h"
#include "RE/T/TogglePOVHandler.h"
#include "RE/T/ToggleRunHandler.h"
Expand Down
2 changes: 1 addition & 1 deletion include/RE/T/TESNPC.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
#include "RE/S/SoundLevels.h"
#include "RE/T/TESActorBase.h"
#include "RE/T/TESRaceForm.h"
#include "RE/T/TintMask.h"

namespace RE
{
class BSFaceGenNiNode;
class MenuOpenCloseEvent;
class NiColorA;
class TintMask;

class CreatureSounds
{
Expand Down
39 changes: 39 additions & 0 deletions include/RE/T/TintMask.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#pragma once

#include "RE/T/TESTexture.h"
#include "RE/C/Color.h"

namespace RE
{
class TintMask
{
public:
enum class Type
{
kFrekles = 0,
kLips,
kCheeks,
kEyeliner,
kUpperEyeSocket,
kLowerEyeSocket,
kSkinTone,
kWarPaint,
kFrownLines,
kLowerCheeks,
kNose,
kChin,
kNeck,
kForehead,
kDirt,

kTotal
};

// members
TESTexture* texture;
Color color;
float alpha;
stl::enumeration<Type, std::uint32_t> type;
};
static_assert(sizeof(TintMask) == 0x18);
}

0 comments on commit 9b7c386

Please sign in to comment.