blob: f0f5c2a7accf072169699b900b04de4ecc5e6755 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//=============================================================================//
#ifndef CLIENTMODE_TFBASE_H
#define CLIENTMODE_TFBASE_H
#ifdef _WIN32
#pragma once
#endif
#include "clientmode_shared.h"
class ConVar;
class CMinimapPanel;
namespace vgui
{
typedef unsigned long HScheme;
}
// This class defines the base clientmode behavior in TF. Classes that derive from
// it and override functions should forward them to the base class.
class ClientModeTFBase : public ClientModeShared
{
DECLARE_CLASS( ClientModeTFBase, ClientModeShared );
public:
ClientModeTFBase( void );
virtual ~ClientModeTFBase( void );
virtual void Init();
virtual void Shutdown();
virtual void Enable();
virtual void PreRender( CViewSetup *pSetup );
virtual void PostRender();
virtual void Update();
virtual void LevelInit( const char *newmap );
virtual void LevelShutdown( void );
// Input
virtual int KeyInput( int down, ButtonCode_t keynum, const char *pszCurrentBinding );
virtual CMinimapPanel *GetMinimap( void );
virtual vgui::Panel *GetMinimapParent( void ) = 0;
private:
void Initialize( void );
bool m_bInitialized;
ConVar *m_pCVDrawFullSkybox;
float m_flOldDrawFullSkybox;
static CMinimapPanel *m_pMinimap;
};
extern vgui::HScheme g_hVGuiObjectScheme;
#endif // CLIENTMODE_TFBASE_H
|