GlobalLobbyObserver.h 641 B

1234567891011121314151617181920212223
  1. /*
  2. * GlobalLobbyObserver.h, part of VCMI engine
  3. *
  4. * Authors: listed in file AUTHORS in main folder
  5. *
  6. * License: GNU General Public License v2.0 or later
  7. * Full text of license available in license.txt file, in main folder
  8. *
  9. */
  10. #pragma once
  11. struct GlobalLobbyAccount;
  12. struct GlobalLobbyRoom;
  13. /// Interface for windows that want to receive updates whenever state of global lobby changes
  14. class GlobalLobbyObserver
  15. {
  16. public:
  17. virtual void onActiveAccounts(const std::vector<GlobalLobbyAccount> & accounts) {}
  18. virtual void onActiveGameRooms(const std::vector<GlobalLobbyRoom> & rooms) {}
  19. virtual ~GlobalLobbyObserver() = default;
  20. };