diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /dedicated/console/textconsole.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'dedicated/console/textconsole.h')
| -rw-r--r-- | dedicated/console/textconsole.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dedicated/console/textconsole.h b/dedicated/console/textconsole.h new file mode 100644 index 0000000..69cf366 --- /dev/null +++ b/dedicated/console/textconsole.h @@ -0,0 +1,38 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// + +#if !defined TEXTCONSOLE_H +#define TEXTCONSOLE_H +#pragma once + +class CTextConsole +{ +public: + CTextConsole() : m_ConsoleVisible( true ) {} + virtual ~CTextConsole() {}; + + virtual bool Init (); + virtual void ShutDown() = 0; + virtual void Print( char * pszMsg ) = 0; + + virtual void SetTitle( char * pszTitle ) = 0; + virtual void SetStatusLine( char * pszStatus ) = 0; + virtual void UpdateStatus() = 0; + + // Must be provided by children + virtual char * GetLine( int index, char *buf, int buflen ) = 0; + virtual int GetWidth() = 0; + + virtual void SetVisible( bool visible ) { m_ConsoleVisible = visible; } + virtual bool IsVisible() { return m_ConsoleVisible; } + +protected: + bool m_ConsoleVisible; +}; + +#endif // !defined TEXTCONSOLE_H |