/
dieoska
/
ddnet
Обзор
Документация
Войти
/
dieoska
/
ddnet
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/game/server/gamemodes/mod.cpp
26 строк
758 B
Robert Müller
Order and group all `#include`s with Clang Format
29 сен 2025, 18:59
29 сен 2025, 18:59
a64bc97
Код
Авторство
О чём код?
#include "mod.h" #include <engine/shared/config.h> // Exchange this to a string that identifies your game mode. // DM, TDM and CTF are reserved for teeworlds original modes. // DDraceNetwork and TestDDraceNetwork are used by DDNet. #define GAME_TYPE_NAME "Mod" #define TEST_TYPE_NAME "TestMod" CGameControllerMod::CGameControllerMod(class CGameContext *pGameServer) : IGameController(pGameServer) { m_pGameType = g_Config.m_SvTestingCommands ? TEST_TYPE_NAME : GAME_TYPE_NAME; //m_GameFlags = GAMEFLAG_TEAMS; // GAMEFLAG_TEAMS makes it a two-team gamemode } CGameControllerMod::~CGameControllerMod() = default; void CGameControllerMod::Tick() { // this is the main part of the gamemode, this function is run every tick IGameController::Tick(); }