Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

38 lines
939 B

//========= 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