GOG GALAXY SDK Documentation
ILobbyOwnerChangeListener Class Referenceabstract

Listener for the event of changing the owner of a lobby. More...

#include <IMatchmaking.h>

Inheritance diagram for ILobbyOwnerChangeListener:
[legend]

Public Member Functions

virtual void OnLobbyOwnerChanged (const GalaxyID &lobbyID, const GalaxyID &newOwnerID)=0
 Notification for the event of someone else becoming the owner of a lobby. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GalaxyTypeAwareListener< LOBBY_OWNER_CHANGE >
static ListenerType GetListenerType ()
 Returns the type of the listener. More...
 

Detailed Description

Listener for the event of changing the owner of a lobby.

The event occurs when a lobby member is chosen to become the new owner of the lobby in place of the previous owner that apparently left the lobby, which should be explicitly indicated in a separate notification.

Remarks
This listener should be implemented only if the game can handle the situation where the lobby owner leaves the lobby for any reason (e.g. is disconnected), letting the other users continue playing in the same lobby with the new owner knowing the state of the lobby and taking the responsibility for managing it.

Member Function Documentation

◆ OnLobbyOwnerChanged()

virtual void OnLobbyOwnerChanged ( const GalaxyID lobbyID,
const GalaxyID newOwnerID 
)
pure virtual

Notification for the event of someone else becoming the owner of a lobby.

Parameters
[in]lobbyIDThe ID of the lobby.
[in]newOwnerIDThe ID of the user who became new lobby owner.