about summary refs log tree commit diff
path: root/src/game/server/gamemodes
diff options
context:
space:
mode:
authorMagnus Auvinen <magnus.auvinen@gmail.com>2009-01-11 13:23:40 +0000
committerMagnus Auvinen <magnus.auvinen@gmail.com>2009-01-11 13:23:40 +0000
commit7c0413ebacefdb47e623276e189805a8edbe21f6 (patch)
tree868aab9fba27744003553b5502ae591335ef0a92 /src/game/server/gamemodes
parent18758943d6d3d0ad93b3a2b3c0c131b053e58e2e (diff)
downloadzcatch-7c0413ebacefdb47e623276e189805a8edbe21f6.tar.gz
zcatch-7c0413ebacefdb47e623276e189805a8edbe21f6.zip
added some modding comments
Diffstat (limited to 'src/game/server/gamemodes')
-rw-r--r--src/game/server/gamemodes/mod.cpp3
-rw-r--r--src/game/server/gamemodes/mod.hpp2
2 files changed, 5 insertions, 0 deletions
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 <game/server/gamecontroller.hpp>

 

+// 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: