| 1 | #include "mod.h" |
|---|---|
| 2 | |
| 3 | #include <engine/shared/config.h> |
| 4 | |
| 5 | // Exchange this to a string that identifies your game mode. |
| 6 | // DM, TDM and CTF are reserved for teeworlds original modes. |
| 7 | // DDraceNetwork and TestDDraceNetwork are used by DDNet. |
| 8 | #define GAME_TYPE_NAME "Mod" |
| 9 | #define TEST_TYPE_NAME "TestMod" |
| 10 | |
| 11 | CGameControllerMod::CGameControllerMod(class CGameContext *pGameServer) : |
| 12 | IGameController(pGameServer) |
| 13 | { |
| 14 | m_pGameType = g_Config.m_SvTestingCommands ? TEST_TYPE_NAME : GAME_TYPE_NAME; |
| 15 | |
| 16 | //m_GameFlags = GAMEFLAG_TEAMS; // GAMEFLAG_TEAMS makes it a two-team gamemode |
| 17 | } |
| 18 | |
| 19 | CGameControllerMod::~CGameControllerMod() = default; |
| 20 | |
| 21 | void CGameControllerMod::Tick() |
| 22 | { |
| 23 | // this is the main part of the gamemode, this function is run every tick |
| 24 | |
| 25 | IGameController::Tick(); |
| 26 | } |
| 27 |