From fdfcc2d575e845a32ffe2dfc0b330a686e92dcc0 Mon Sep 17 00:00:00 2001 From: Markus Mittendrein Date: Tue, 27 Oct 2015 14:13:47 +0100 Subject: Add support for individual pack versions per scenario --- src/crsm.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/crsm.hpp') diff --git a/src/crsm.hpp b/src/crsm.hpp index 63e6156..af3b5cf 100644 --- a/src/crsm.hpp +++ b/src/crsm.hpp @@ -22,6 +22,7 @@ #include "ProcessManager.hpp" #include "CRSMConfig.hpp" #include "CRSMStats.hpp" +#include "CRSMPackCompatibility.hpp" #define CONFIG_FILE_NAME "CrServerManager.conf" #define SESSION_FILE_NAME "CrServerManager.session" @@ -187,6 +188,7 @@ private: CRSMSession Session; CRSMStats Stats; + CRSMPackCompatibility Packs; QList userlist; QList autolist; @@ -275,6 +277,8 @@ private: QString scenarioFileName(QString name); CmdResult callCommand(const CmdFunctionRef& func, const QString& args, const ClientInfo& client, UserType userType); + void writeFiles(bool writeSession = false, bool writeNoConfig = false); + CMD_FUNCTION(help); CMD_FUNCTION(passToClonk); CMD_FUNCTION(passToClonkOnOff); @@ -326,6 +330,14 @@ private: CMD_FUNCTION(ircSay); CMD_FUNCTION(ircWatch); + CMD_FUNCTION(packsList); + CMD_FUNCTION(packsVersionsAdd); + CMD_FUNCTION(packsVersionsDelete); + CMD_FUNCTION(packsVersionsDefault); + CMD_FUNCTION(packsScenariosAdd); + CMD_FUNCTION(packsScenariosDelete); + CMD_FUNCTION(packsScenariosList); + IRC_CHECK_CALLBACK(ircSetAdmin); IRC_CHECK_CALLBACK(ircModCmd); IRC_CHECK_CALLBACK(ircSayQuery); -- cgit v1.2.3-54-g00ecf