summaryrefslogtreecommitdiff
path: root/common/iappinformation.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 /common/iappinformation.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'common/iappinformation.h')
-rw-r--r--common/iappinformation.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/common/iappinformation.h b/common/iappinformation.h
new file mode 100644
index 0000000..82133d6
--- /dev/null
+++ b/common/iappinformation.h
@@ -0,0 +1,42 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================
+
+#ifndef IAPPINFORMATION_H
+#define IAPPINFORMATION_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "interface.h"
+
+
+//-----------------------------------------------------------------------------
+// Purpose: Interface to running the game engine
+//-----------------------------------------------------------------------------
+abstract_class IAppInformation : public IBaseInterface
+{
+public:
+ // the number of apps known about by the app
+ virtual int GetAppCount() = 0;
+
+ // details about this particular app
+ // iApp is from [ 0 .. GetAppCount() )
+ virtual const char *GetAppName( int iApp ) = 0;
+ virtual const char *GetAppServerBrowserName( int iApp ) = 0;
+ virtual const char *GetAppGameDir( int iApp ) = 0;
+ virtual bool GetAppHasServers( int iApp ) = 0;
+ virtual uint32 GetAppID( int iApp ) = 0;
+ virtual bool GetAppIsSubscribed( int iApp ) = 0;
+ virtual const char *GetAppIcon( int iApp ) = 0;
+ // converting appID->iApp (needed since this whole interface is backwards)
+ virtual int GetIAppForAppID( uint32 unAppID ) = 0;
+};
+
+#define APPINFORMATION_INTERFACE_VERSION "AppInformation002"
+
+
+#endif // IAPPINFORMATION_H