mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-24 14:37:25 +00:00
address feedback
This commit is contained in:
parent
ce5bd68067
commit
214626222c
@ -10,7 +10,9 @@
|
||||
#include "PlayerContainer.h"
|
||||
#include "dConfig.h"
|
||||
#include "httplib.h"
|
||||
#include "json.h"
|
||||
#include "nlohmann/json.hpp"
|
||||
|
||||
using json = nlohmann::json;
|
||||
|
||||
namespace {
|
||||
httplib::Server m_APIServer;
|
||||
|
@ -13,7 +13,9 @@
|
||||
#include "eConnectionType.h"
|
||||
#include "ChatPackets.h"
|
||||
#include "dConfig.h"
|
||||
#include "eChatMessageType.h"
|
||||
#include "eChatMessageType.h"
|
||||
|
||||
using json = nlohmann::json;
|
||||
|
||||
const json PlayerData::to_json() const {
|
||||
json data;
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "Game.h"
|
||||
#include "dServer.h"
|
||||
#include <unordered_map>
|
||||
#include "json.h"
|
||||
#include "nlohmann/json.hpp"
|
||||
|
||||
enum class eGameMasterLevel : uint8_t;
|
||||
|
||||
@ -37,7 +37,7 @@ struct PlayerData {
|
||||
return muteExpire == 1 || muteExpire > time(NULL);
|
||||
}
|
||||
|
||||
const json to_json() const;
|
||||
const nlohmann::json to_json() const;
|
||||
|
||||
SystemAddress sysAddr{};
|
||||
LWOZONEID zoneID{};
|
||||
|
@ -1,10 +0,0 @@
|
||||
#ifndef __JSON__H__
|
||||
#define __JSON__H__
|
||||
|
||||
#include "nlohmann/json.hpp"
|
||||
|
||||
namespace {
|
||||
using json = nlohmann::json;
|
||||
}
|
||||
|
||||
#endif // !__JSON__H__
|
Loading…
Reference in New Issue
Block a user