mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-06 15:28:39 +00:00
address feedback
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include <cstdint>
|
||||
#include <nlohmann/json.hpp>
|
||||
|
||||
#include "ChatWebApi.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
#include "dCommonVars.h"
|
||||
#include "eConnectionType.h"
|
||||
#include "eChatMessageType.h"
|
||||
@@ -9,8 +9,8 @@
|
||||
#include "dServer.h"
|
||||
#include "PlayerContainer.h"
|
||||
#include "dConfig.h"
|
||||
|
||||
using json = nlohmann::json;
|
||||
#include "httplib.h"
|
||||
#include "json.h"
|
||||
|
||||
namespace {
|
||||
httplib::Server m_APIServer;
|
||||
@@ -86,8 +86,6 @@ void ChatWebApi::Listen(const uint32_t port) {
|
||||
};
|
||||
|
||||
void ChatWebApi::Stop(){
|
||||
if (Game::config->GetValue("enable_chat_web_api") == "1") {
|
||||
LOG("Stopping Chat Web API server...");
|
||||
m_APIServer.stop();
|
||||
}
|
||||
LOG("Stopping Chat Web API server...");
|
||||
m_APIServer.stop();
|
||||
}
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "httplib.h"
|
||||
#include <cstdint>
|
||||
|
||||
namespace ChatWebApi {
|
||||
void Listen(const uint32_t port);
|
||||
|
@@ -1,7 +1,8 @@
|
||||
#include "PlayerContainer.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <algorithm>
|
||||
|
||||
#include "PlayerContainer.h"
|
||||
#include "dNetCommon.h"
|
||||
#include "Game.h"
|
||||
#include "Logger.h"
|
||||
@@ -14,7 +15,6 @@
|
||||
#include "dConfig.h"
|
||||
#include "eChatMessageType.h"
|
||||
|
||||
|
||||
const json PlayerData::to_json() const {
|
||||
json data;
|
||||
data["id"] = this->playerID;
|
||||
|
@@ -6,9 +6,7 @@
|
||||
#include "Game.h"
|
||||
#include "dServer.h"
|
||||
#include <unordered_map>
|
||||
|
||||
#include <nlohmann/json.hpp>
|
||||
using json = nlohmann::json;
|
||||
#include "json.h"
|
||||
|
||||
enum class eGameMasterLevel : uint8_t;
|
||||
|
||||
|
Reference in New Issue
Block a user