summaryrefslogtreecommitdiff
path: root/dedicated/isys.h
diff options
context:
space:
mode:
Diffstat (limited to 'dedicated/isys.h')
-rw-r--r--dedicated/isys.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/dedicated/isys.h b/dedicated/isys.h
new file mode 100644
index 0000000..d86769a
--- /dev/null
+++ b/dedicated/isys.h
@@ -0,0 +1,45 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+#if !defined( ISYS_H )
+#define ISYS_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "interface.h"
+
+class CDedicatedAppSystemGroup;
+
+
+abstract_class ISys
+{
+public:
+ virtual ~ISys( void ) { }
+
+ virtual bool LoadModules( CDedicatedAppSystemGroup *pAppSystemGroup ) = 0;
+
+ virtual void Sleep( int msec ) = 0;
+ virtual bool GetExecutableName( char *out ) = 0;
+ virtual void ErrorMessage( int level, const char *msg ) = 0;
+
+ virtual void WriteStatusText( char *szText ) = 0;
+ virtual void UpdateStatus( int force ) = 0;
+
+ virtual long LoadLibrary( char *lib ) = 0;
+ virtual void FreeLibrary( long library ) = 0;
+
+ virtual bool CreateConsoleWindow( void ) = 0;
+ virtual void DestroyConsoleWindow( void ) = 0;
+
+ virtual void ConsoleOutput ( char *string ) = 0;
+ virtual char *ConsoleInput ( int index, char *buf, int buflen ) = 0;
+ virtual void Printf( PRINTF_FORMAT_STRING const char *fmt, ...) FMTFUNCTION( 2, 3 ) = 0;
+};
+
+extern ISys *sys;
+
+#endif // ISYS_H \ No newline at end of file