forked from nillerusr/source-engine
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathiappinformation.h
42 lines (34 loc) · 1.28 KB
/
iappinformation.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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