mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Started to add advanced RTS options to backend
This commit is contained in:
@@ -13,13 +13,33 @@ public:
|
||||
void execute(lua_State* L);
|
||||
void handleRequest(string key, json::value value);
|
||||
|
||||
int getLoad();
|
||||
void setFrameRate(double newFrameRate) { frameRate = newFrameRate; }
|
||||
void setRestrictSpawns(bool newRestrictSpawns) { restrictSpawns = newRestrictSpawns; }
|
||||
void setRestrictToCoalition(bool newRestrictToCoalition) { restrictSpawns = newRestrictToCoalition; }
|
||||
void setSetupTime(unsigned int newSetupTime) { setupTime = newSetupTime; }
|
||||
void setBlueSpawnPoints(unsigned int newBlueSpawnPoints) { blueSpawnPoints = newBlueSpawnPoints; }
|
||||
void setRedSpawnPoints(unsigned int newRedSpawnPoints) { redSpawnPoints = newRedSpawnPoints; }
|
||||
void setEras(vector<string> newEras) { eras = newEras; }
|
||||
|
||||
int getFrameRate() { return frameRate; };
|
||||
|
||||
int getLoad();
|
||||
bool getRestrictSpawns() { return restrictSpawns; }
|
||||
bool getRestrictToCoalition() { return restrictSpawns; }
|
||||
unsigned int getSetupTime() { return setupTime; }
|
||||
unsigned int getBlueSpawnPoints() { return blueSpawnPoints; }
|
||||
unsigned int getRedSpawnPoints() { return redSpawnPoints; }
|
||||
vector<string> getEras() { return eras; }
|
||||
|
||||
private:
|
||||
list<Command*> commands;
|
||||
unsigned int load;
|
||||
double frameRate;
|
||||
|
||||
bool restrictSpawns = false;
|
||||
bool restrictToCoalition = false;
|
||||
unsigned int setupTime = 300;
|
||||
unsigned int blueSpawnPoints = 10000;
|
||||
unsigned int redSpawnPoints = 10000;
|
||||
vector<string> eras = { "WW2", "Early Cold War", "Mid Cold War", "Late Cold War", "Modern" };
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user