From e757086465b47794f29434f051bcd499421f919e Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Thu, 2 Jan 2025 20:28:03 -0800 Subject: [PATCH] include optimization --- dChatServer/ChatWebAPI.cpp | 4 ++++ dChatServer/ChatWebAPI.h | 4 ---- dChatServer/PlayerContainer.cpp | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dChatServer/ChatWebAPI.cpp b/dChatServer/ChatWebAPI.cpp index 33e2a9ad..cce1cecc 100644 --- a/dChatServer/ChatWebAPI.cpp +++ b/dChatServer/ChatWebAPI.cpp @@ -10,6 +10,10 @@ #include "PlayerContainer.h" #include "GeneralUtils.h" +#include "json.hpp" + +using json = nlohmann::json; + typedef struct mg_connection mg_connection; typedef struct mg_http_message mg_http_message; diff --git a/dChatServer/ChatWebAPI.h b/dChatServer/ChatWebAPI.h index 591b207d..0a296e14 100644 --- a/dChatServer/ChatWebAPI.h +++ b/dChatServer/ChatWebAPI.h @@ -2,10 +2,6 @@ #define CHATWEBAPI_H #include "mongoose.h" -#include "json_fwd.hpp" -#include "GeneralUtils.h" - -using json = nlohmann::json; typedef struct mg_mgr mg_mgr; diff --git a/dChatServer/PlayerContainer.cpp b/dChatServer/PlayerContainer.cpp index 2de5a027..86e02ffa 100644 --- a/dChatServer/PlayerContainer.cpp +++ b/dChatServer/PlayerContainer.cpp @@ -13,6 +13,8 @@ #include "dConfig.h" #include "MessageType/Chat.h" +#include "json.hpp" + using json = nlohmann::json; void to_json(json& data, const PlayerData& playerData) {