This commit is contained in:
Anonymous275
2020-04-10 21:42:04 +03:00
parent 9bdec9e5f8
commit 29e77b147c
6 changed files with 36 additions and 36 deletions

View File

@@ -6,7 +6,6 @@
#include <string>
#include <fstream>
#include "logger.h"
#include "settings.h"
#include <chrono>
#include <thread>
@@ -19,6 +18,17 @@ bool Debug = false;
void addToLog(basic_string<char> Data);
void HeartbeatInit();
string MapName = "levels/gridmap/level.json";
string Private = "false";
int MaxPlayers = 10;
int UDPPort = 30814;
int TCPPort = 0;
string ServerName = "BeamMP Server";
string Resource = "/Resources";
string ServerVersion = "0.1";
string ClientVersion = "0.21";
//Entry
int main() {
LogInit();
@@ -42,12 +52,12 @@ void DebugData(){
}
void SetMainValues(bool D, int P,int MP,string Name,string serverName,string filename){
bool Debug = D;
int UDPPort = P;
string MapName = Name;
string ServerName = serverName;
int MaxPlayers = MP;
string Resource = filename;
Debug = D;
UDPPort = P;
MapName = Name;
ServerName = serverName;
MaxPlayers = MP;
Resource = filename;
}
void LogInit(){
@@ -61,4 +71,4 @@ void addToLog(basic_string<char> Data){
LFS.open ("Server.log", std::ios_base::app);
LFS << Data.c_str();
LFS.close();
}
}