Table of Contents

Class WynLobbyEvents

Namespace
Wyn.Lobby
Assembly
Wyn.Lobby.Runtime.dll

Centralized event hub for WynLobby. Subscribe to these events to react to lobby state changes without coupling to WynLobby directly.

public static class WynLobbyEvents
Inheritance
WynLobbyEvents
Inherited Members

Events

Error

Fired when an error occurs during any lobby operation.

public static event Action<Exception> Error

Event Type

Action<Exception>

GameStartRequested

Fired when host requests gameplay start.

public static event Action<string> GameStartRequested

Event Type

Action<string>

PlayerJoined

Fired when a remote player joins the current session.

public static event Action<string> PlayerJoined

Event Type

Action<string>

PlayerLeft

Fired when a remote player leaves the current session.

public static event Action<string> PlayerLeft

Event Type

Action<string>

PlayerStoreReady

Fired when a LobbyPlayerStore instance completes OnNetworkSpawn.

public static event Action<NetworkBehaviour> PlayerStoreReady

Event Type

Action<NetworkBehaviour>

SessionChanged

Fired when the session data changes.

public static event Action<ISession> SessionChanged

Event Type

Action<ISession>

SessionCreated

Fired when a new session is created (host).

public static event Action<ISession> SessionCreated

Event Type

Action<ISession>

SessionJoined

Fired when successfully joined an existing session (client).

public static event Action<ISession> SessionJoined

Event Type

Action<ISession>

SessionLeft

Fired when the local player leaves the session.

public static event Action SessionLeft

Event Type

Action

SessionsQueried

Fired when session discovery query completes successfully.

public static event Action<QuerySessionsResults> SessionsQueried

Event Type

Action<QuerySessionsResults>