address feedback

This commit is contained in:
Aaron Kimbre 2024-04-26 06:17:54 -05:00
parent ce5bd68067
commit 214626222c
4 changed files with 8 additions and 14 deletions

View File

@ -10,7 +10,9 @@
#include "PlayerContainer.h" #include "PlayerContainer.h"
#include "dConfig.h" #include "dConfig.h"
#include "httplib.h" #include "httplib.h"
#include "json.h" #include "nlohmann/json.hpp"
using json = nlohmann::json;
namespace { namespace {
httplib::Server m_APIServer; httplib::Server m_APIServer;

View File

@ -13,7 +13,9 @@
#include "eConnectionType.h" #include "eConnectionType.h"
#include "ChatPackets.h" #include "ChatPackets.h"
#include "dConfig.h" #include "dConfig.h"
#include "eChatMessageType.h" #include "eChatMessageType.h"
using json = nlohmann::json;
const json PlayerData::to_json() const { const json PlayerData::to_json() const {
json data; json data;

View File

@ -6,7 +6,7 @@
#include "Game.h" #include "Game.h"
#include "dServer.h" #include "dServer.h"
#include <unordered_map> #include <unordered_map>
#include "json.h" #include "nlohmann/json.hpp"
enum class eGameMasterLevel : uint8_t; enum class eGameMasterLevel : uint8_t;
@ -37,7 +37,7 @@ struct PlayerData {
return muteExpire == 1 || muteExpire > time(NULL); return muteExpire == 1 || muteExpire > time(NULL);
} }
const json to_json() const; const nlohmann::json to_json() const;
SystemAddress sysAddr{}; SystemAddress sysAddr{};
LWOZONEID zoneID{}; LWOZONEID zoneID{};

View File

@ -1,10 +0,0 @@
#ifndef __JSON__H__
#define __JSON__H__
#include "nlohmann/json.hpp"
namespace {
using json = nlohmann::json;
}
#endif // !__JSON__H__