mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-06 07:18:42 +00:00
include optimization
This commit is contained in:
@@ -10,6 +10,10 @@
|
|||||||
#include "PlayerContainer.h"
|
#include "PlayerContainer.h"
|
||||||
#include "GeneralUtils.h"
|
#include "GeneralUtils.h"
|
||||||
|
|
||||||
|
#include "json.hpp"
|
||||||
|
|
||||||
|
using json = nlohmann::json;
|
||||||
|
|
||||||
typedef struct mg_connection mg_connection;
|
typedef struct mg_connection mg_connection;
|
||||||
typedef struct mg_http_message mg_http_message;
|
typedef struct mg_http_message mg_http_message;
|
||||||
|
|
||||||
|
@@ -2,10 +2,6 @@
|
|||||||
#define CHATWEBAPI_H
|
#define CHATWEBAPI_H
|
||||||
|
|
||||||
#include "mongoose.h"
|
#include "mongoose.h"
|
||||||
#include "json_fwd.hpp"
|
|
||||||
#include "GeneralUtils.h"
|
|
||||||
|
|
||||||
using json = nlohmann::json;
|
|
||||||
|
|
||||||
typedef struct mg_mgr mg_mgr;
|
typedef struct mg_mgr mg_mgr;
|
||||||
|
|
||||||
|
@@ -13,6 +13,8 @@
|
|||||||
#include "dConfig.h"
|
#include "dConfig.h"
|
||||||
#include "MessageType/Chat.h"
|
#include "MessageType/Chat.h"
|
||||||
|
|
||||||
|
#include "json.hpp"
|
||||||
|
|
||||||
using json = nlohmann::json;
|
using json = nlohmann::json;
|
||||||
|
|
||||||
void to_json(json& data, const PlayerData& playerData) {
|
void to_json(json& data, const PlayerData& playerData) {
|
||||||
|
Reference in New Issue
Block a user