GOG GALAXY SDK Documentation
ILobbyLeftListener Class Referenceabstract

Listener for the event of leaving a lobby. More...

#include <IMatchmaking.h>

Inheritance diagram for ILobbyLeftListener:
[legend]

Public Types

enum  LobbyLeaveReason { LOBBY_LEAVE_REASON_UNDEFINED , LOBBY_LEAVE_REASON_USER_LEFT , LOBBY_LEAVE_REASON_LOBBY_CLOSED , LOBBY_LEAVE_REASON_CONNECTION_LOST }
 The reason of leaving a lobby. More...
 

Public Member Functions

virtual void OnLobbyLeft (const GalaxyID &lobbyID, LobbyLeaveReason leaveReason)=0
 Notification for the event of leaving lobby. More...
 

Additional Inherited Members

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

Detailed Description

Listener for the event of leaving a lobby.

Member Enumeration Documentation

◆ LobbyLeaveReason

The reason of leaving a lobby.

Enumerator
LOBBY_LEAVE_REASON_UNDEFINED 

Unspecified error.

LOBBY_LEAVE_REASON_USER_LEFT 

The user has left the lobby as a result of calling IMatchmaking::LeaveLobby().

LOBBY_LEAVE_REASON_LOBBY_CLOSED 

The lobby has been closed (e.g. the owner has left the lobby without host migration).

LOBBY_LEAVE_REASON_CONNECTION_LOST 

The Peer has lost the connection.

Member Function Documentation

◆ OnLobbyLeft()

virtual void OnLobbyLeft ( const GalaxyID lobbyID,
LobbyLeaveReason  leaveReason 
)
pure virtual

Notification for the event of leaving lobby.

Parameters
[in]lobbyIDThe ID of the lobby.
[in]leaveReasonThe cause of leaving the lobby.