summaryrefslogtreecommitdiff
path: root/game/client/tf2/clientmode_tfbase.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/tf2/clientmode_tfbase.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/client/tf2/clientmode_tfbase.h')
-rw-r--r--game/client/tf2/clientmode_tfbase.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/game/client/tf2/clientmode_tfbase.h b/game/client/tf2/clientmode_tfbase.h
new file mode 100644
index 0000000..f0f5c2a
--- /dev/null
+++ b/game/client/tf2/clientmode_tfbase.h
@@ -0,0 +1,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