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