From 7c0413ebacefdb47e623276e189805a8edbe21f6 Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Sun, 11 Jan 2009 13:23:40 +0000 Subject: added some modding comments --- src/game/server/gamemodes/mod.cpp | 3 +++ src/game/server/gamemodes/mod.hpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/game/server/gamemodes/mod.cpp b/src/game/server/gamemodes/mod.cpp index 00199305..87b37411 100644 --- a/src/game/server/gamemodes/mod.cpp +++ b/src/game/server/gamemodes/mod.cpp @@ -3,7 +3,10 @@ GAMECONTROLLER_MOD::GAMECONTROLLER_MOD() { + // Exchange this to a string that identifies your game mode. + // DM, TDM and CTF are reserved for teeworlds original modes. gametype = "MOD"; + //game_flags = GAMEFLAG_TEAMS; // GAMEFLAG_TEAMS makes it a two-team gamemode } diff --git a/src/game/server/gamemodes/mod.hpp b/src/game/server/gamemodes/mod.hpp index 35d6d989..9915a615 100644 --- a/src/game/server/gamemodes/mod.hpp +++ b/src/game/server/gamemodes/mod.hpp @@ -2,6 +2,8 @@ #include +// you can subclass GAMECONTROLLER_CTF, GAMECONTROLLER_TDM etc if you want +// todo a modification with their base as well. class GAMECONTROLLER_MOD : public GAMECONTROLLER { public: -- cgit 1.4.1