Team Fortress 2 Source Code as on 22/4/2020
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.

42 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================
  7. #ifndef IAPPINFORMATION_H
  8. #define IAPPINFORMATION_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "interface.h"
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Interface to running the game engine
  15. //-----------------------------------------------------------------------------
  16. abstract_class IAppInformation : public IBaseInterface
  17. {
  18. public:
  19. // the number of apps known about by the app
  20. virtual int GetAppCount() = 0;
  21. // details about this particular app
  22. // iApp is from [ 0 .. GetAppCount() )
  23. virtual const char *GetAppName( int iApp ) = 0;
  24. virtual const char *GetAppServerBrowserName( int iApp ) = 0;
  25. virtual const char *GetAppGameDir( int iApp ) = 0;
  26. virtual bool GetAppHasServers( int iApp ) = 0;
  27. virtual uint32 GetAppID( int iApp ) = 0;
  28. virtual bool GetAppIsSubscribed( int iApp ) = 0;
  29. virtual const char *GetAppIcon( int iApp ) = 0;
  30. // converting appID->iApp (needed since this whole interface is backwards)
  31. virtual int GetIAppForAppID( uint32 unAppID ) = 0;
  32. };
  33. #define APPINFORMATION_INTERFACE_VERSION "AppInformation002"
  34. #endif // IAPPINFORMATION_H