Functions and new Config

This commit is contained in:
Anonymous275
2020-04-09 21:32:32 +03:00
parent 3c244c7e7f
commit 640a9c2e54
7 changed files with 49 additions and 49 deletions

View File

@@ -1,6 +1,6 @@
//
// Created by Anonymous275 on 28.01.2020.
//
///
/// Created by Anonymous275 on 28/01/2020
///
#include <iostream>
#include <string>
@@ -21,6 +21,7 @@ int Port = 30814;
int MaxPlayers = 10;
string MapName = "levels/gridmap/level.json";
string ServerName = "BeamNG-MP FTW";
string Resource = "/Resources";
//Entry
int main() {
@@ -41,14 +42,16 @@ void DebugData(){
cout << "MaxPlayers : " << MaxPlayers << "\n";
cout << "MapName : " << MapName << "\n";
cout << "ServerName : " << ServerName << "\n";
cout << "File : " << Resource << "\n";
}
void SetMainValues(bool D, int P,int MP,string Name,string serverName){
void SetMainValues(bool D, int P,int MP,string Name,string serverName,string filename){
Debug = D;
Port = P;
MapName = Name;
ServerName = serverName;
MaxPlayers = MP;
Resource = filename;
}
void LogInit(){