From 3a0daa3ab9f56264abdb1de9071dbb2463b1ade2 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 15 Oct 2019 10:22:47 -0400 Subject: [PATCH] CLogBookScreen: Use forward declarations where applicable Allows for avoiding the over exposing of types through the header when included in other translation units or headers. --- Runtime/MP1/CLogBookScreen.cpp | 3 +++ Runtime/MP1/CLogBookScreen.hpp | 11 +++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/Runtime/MP1/CLogBookScreen.cpp b/Runtime/MP1/CLogBookScreen.cpp index 904a74c6d..a459d9c1a 100644 --- a/Runtime/MP1/CLogBookScreen.cpp +++ b/Runtime/MP1/CLogBookScreen.cpp @@ -2,10 +2,13 @@ #include +#include "Runtime/CPlayerState.hpp" +#include "Runtime/CStateManager.hpp" #include "Runtime/GuiSys/CAuiImagePane.hpp" #include "Runtime/GuiSys/CGuiModel.hpp" #include "Runtime/GuiSys/CGuiTableGroup.hpp" #include "Runtime/GuiSys/CGuiTextPane.hpp" +#include "Runtime/MP1/CArtifactDoll.hpp" #include "Runtime/MP1/MP1.hpp" namespace urde::MP1 { diff --git a/Runtime/MP1/CLogBookScreen.hpp b/Runtime/MP1/CLogBookScreen.hpp index c6d2a930d..8b2892b7b 100644 --- a/Runtime/MP1/CLogBookScreen.hpp +++ b/Runtime/MP1/CLogBookScreen.hpp @@ -4,12 +4,19 @@ #include #include +#include "Runtime/CSaveWorld.hpp" +#include "Runtime/CToken.hpp" #include "Runtime/rstl.hpp" -#include "Runtime/MP1/CArtifactDoll.hpp" -#include "Runtime/MP1/CInGameGuiManager.hpp" #include "Runtime/MP1/CPauseScreenBase.hpp" +namespace urde { +class CPlayerState; +class CScannableObjectInfo; +class CStringTable; +} + namespace urde::MP1 { +class CArtifactDoll; class CLogBookScreen : public CPauseScreenBase { rstl::reserved_vector>, 5> x19c_scanCompletes;