Counter Strike : Global Offensive Source Code
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.

45 lines
1.3 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef ISERVERBROWSER_H
  8. #define ISERVERBROWSER_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "interface.h"
  13. //-----------------------------------------------------------------------------
  14. // Purpose: Interface to server browser module
  15. //-----------------------------------------------------------------------------
  16. abstract_class IServerBrowser
  17. {
  18. public:
  19. // activates the server browser window, brings it to the foreground
  20. virtual bool Activate() = 0;
  21. // joins a game directly
  22. virtual bool JoinGame( uint32 unGameIP, uint16 usGamePort ) = 0;
  23. // joins a specified game - game info dialog will only be opened if the server is fully or passworded
  24. virtual bool JoinGame( uint64 ulSteamIDFriend ) = 0;
  25. // opens a game info dialog to watch the specified server; associated with the friend 'userName'
  26. virtual bool OpenGameInfoDialog( uint64 ulSteamIDFriend ) = 0;
  27. // forces the game info dialog closed
  28. virtual void CloseGameInfoDialog( uint64 ulSteamIDFriend ) = 0;
  29. // closes all the game info dialogs
  30. virtual void CloseAllGameInfoDialogs() = 0;
  31. };
  32. #define SERVERBROWSER_INTERFACE_VERSION "ServerBrowser003"
  33. #endif // ISERVERBROWSER_H