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.

53 lines
1.7 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef IGAMECLIENTEXPORTS_H
  8. #define IGAMECLIENTEXPORTS_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "interface.h"
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Exports a set of functions for the GameUI interface to interact with the game client
  15. //-----------------------------------------------------------------------------
  16. abstract_class IGameClientExports : public IBaseInterface
  17. {
  18. public:
  19. #ifndef _XBOX
  20. // ingame voice manipulation
  21. virtual bool IsPlayerGameVoiceMuted(int playerIndex) = 0;
  22. virtual void MutePlayerGameVoice(int playerIndex) = 0;
  23. virtual void UnmutePlayerGameVoice(int playerIndex) = 0;
  24. // notification of gameui state changes
  25. virtual void OnGameUIActivated() = 0;
  26. virtual void OnGameUIHidden() = 0;
  27. #endif
  28. //=============================================================================
  29. // HPE_BEGIN
  30. // [dwenger] Necessary for stats display
  31. //=============================================================================
  32. virtual void CreateAchievementsPanel( vgui::Panel* pParent ) = 0;
  33. virtual void DisplayAchievementPanel( ) = 0;
  34. virtual void ShutdownAchievementPanel( ) = 0;
  35. virtual int GetAchievementsPanelMinWidth( void ) const = 0;
  36. //=============================================================================
  37. // HPE_END
  38. //=============================================================================
  39. virtual const char *GetHolidayString() = 0;
  40. };
  41. #define GAMECLIENTEXPORTS_INTERFACE_VERSION "GameClientExports001"
  42. #endif // IGAMECLIENTEXPORTS_H