From 4e30841039bb7c3efe5558e40cba8375baad30f7 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Tue, 27 Oct 2015 12:42:19 +0100 Subject: Begin adding basic stats --- src/crsm.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/crsm.hpp') diff --git a/src/crsm.hpp b/src/crsm.hpp index a9a3143..63e6156 100644 --- a/src/crsm.hpp +++ b/src/crsm.hpp @@ -21,6 +21,7 @@ #include "CmdFunctionRef.hpp" #include "ProcessManager.hpp" #include "CRSMConfig.hpp" +#include "CRSMStats.hpp" #define CONFIG_FILE_NAME "CrServerManager.conf" #define SESSION_FILE_NAME "CrServerManager.session" @@ -142,7 +143,7 @@ private: enum {None = -1, Lobby = 0, Loading = 1, Running = 2} State = None; Boolean UserWish = false; Integer CountDown = -1; - String ScenarioName = ""; + ScenarioSettings Scenario; struct { @@ -168,7 +169,7 @@ private: ConfigVal(State), ConfigVal(UserWish), ConfigVal(CountDown), - ConfigVal(ScenarioName), + ConfigVal(Scenario), ConfigVal(Clonk.Admin), ConfigVal(Clonk.Clients), @@ -185,6 +186,7 @@ private: }; CRSMSession Session; + CRSMStats Stats; QList userlist; QList autolist; @@ -270,6 +272,8 @@ private: void exit(); void applyConfig(); + QString scenarioFileName(QString name); + CmdResult callCommand(const CmdFunctionRef& func, const QString& args, const ClientInfo& client, UserType userType); CMD_FUNCTION(help); CMD_FUNCTION(passToClonk); -- cgit v1.2.3-54-g00ecf