added main menus, improved shading

This commit is contained in:
2025-07-18 20:37:52 +03:00
parent dddf1b5881
commit 070c3ff309
45 changed files with 859 additions and 271 deletions

View File

@@ -1,6 +1,7 @@
#ifndef GAMEMODE_H
#define GAMEMODE_H
#include "interface.h"
#include "tier0/platform.h"
class CGameMode
@@ -11,18 +12,17 @@ public:
bool bCanPlayerSpawnMidRound;
};
interface IGameModeManager
interface IGameModeManager: public IInterface
{
public:
static void Init( void );
static void Frame( void );
static void StartGameMode( const char *szName );
static const char *GetCurrentGameMode( void );
static CGameMode *GetCurrentGameModeClass( void );
static void RestartCurrentGameMode( void );
virtual void StartGameMode( const char *szName ) = 0;
virtual const char *GetCurrentGameMode( void ) = 0;
virtual CGameMode *GetCurrentGameModeClass( void ) = 0;
virtual void RestartCurrentGameMode( void ) = 0;
};
extern IGameModeManager *GameModeManager();
typedef CGameMode*(*GameModeRegistryFn)();
class CGameModeRegistry
{