Class LobbyEventCallbacks
A class for you to provide the callbacks you want to be called from the lobby event subscription.
Inheritance
Inherited Members
Namespace: Global Namespace
Syntax
public class LobbyEventCallbacksEvents
DataAdded
Event called when lobby data is added on the server.
Declaration
public event Action<Dictionary<string, ChangedOrRemovedLobbyValue<DataObject>>> DataAddedEvent Type
| Type | Description |
|---|---|
| System.Action<System.Collections.Generic.Dictionary<System.String, ChangedOrRemovedLobbyValue<DataObject>>> |
DataChanged
Event called when lobby data changes on the server.
Declaration
public event Action<Dictionary<string, ChangedOrRemovedLobbyValue<DataObject>>> DataChangedEvent Type
| Type | Description |
|---|---|
| System.Action<System.Collections.Generic.Dictionary<System.String, ChangedOrRemovedLobbyValue<DataObject>>> |
DataRemoved
Event called when lobby data is removed on the server. Does not cover when the whole data object is completely removed (eg. set to null) For this case, use the DataChanged event instead
Declaration
public event Action<Dictionary<string, ChangedOrRemovedLobbyValue<DataObject>>> DataRemovedEvent Type
| Type | Description |
|---|---|
| System.Action<System.Collections.Generic.Dictionary<System.String, ChangedOrRemovedLobbyValue<DataObject>>> |
KickedFromLobby
Event called when a kick has been received from the lobby event subscription.
Declaration
public event Action KickedFromLobbyEvent Type
| Type | Description |
|---|---|
| System.Action |
LobbyChanged
Event called when a change has occurred to a lobby on the server.
Declaration
public event Action<ILobbyChanges> LobbyChangedEvent Type
| Type | Description |
|---|---|
| System.Action<ILobbyChanges> |
LobbyDeleted
Event called when a lobby is deleted.
Declaration
public event Action LobbyDeletedEvent Type
| Type | Description |
|---|---|
| System.Action |
LobbyEventConnectionStateChanged
Event called when the connection state of the lobby event subscription changes.
Declaration
public event Action<LobbyEventConnectionState> LobbyEventConnectionStateChangedEvent Type
| Type | Description |
|---|---|
| System.Action<LobbyEventConnectionState> |
PlayerDataAdded
Event called when player data is added on the server.
Declaration
public event Action<Dictionary<int, Dictionary<string, ChangedOrRemovedLobbyValue<PlayerDataObject>>>> PlayerDataAddedEvent Type
| Type | Description |
|---|---|
| System.Action<System.Collections.Generic.Dictionary<System.Int32, System.Collections.Generic.Dictionary<System.String, ChangedOrRemovedLobbyValue<PlayerDataObject>>>> |
PlayerDataChanged
Event called when player data changes. The outer dictionary is indexed on player indices. The inner dictionary is indexed on the changed data key.
Declaration
public event Action<Dictionary<int, Dictionary<string, ChangedOrRemovedLobbyValue<PlayerDataObject>>>> PlayerDataChangedEvent Type
| Type | Description |
|---|---|
| System.Action<System.Collections.Generic.Dictionary<System.Int32, System.Collections.Generic.Dictionary<System.String, ChangedOrRemovedLobbyValue<PlayerDataObject>>>> |
PlayerDataRemoved
Event called when player data is removed on the server. Does not cover when the whole data object is completely removed (eg. set to null) For this case, use the PlayerDataChanged event instead
Declaration
public event Action<Dictionary<int, Dictionary<string, ChangedOrRemovedLobbyValue<PlayerDataObject>>>> PlayerDataRemovedEvent Type
| Type | Description |
|---|---|
| System.Action<System.Collections.Generic.Dictionary<System.Int32, System.Collections.Generic.Dictionary<System.String, ChangedOrRemovedLobbyValue<PlayerDataObject>>>> |
PlayerJoined
Event called when a player join has occurred to a lobby on the server.
Declaration
public event Action<List<LobbyPlayerJoined>> PlayerJoinedEvent Type
| Type | Description |
|---|---|
| System.Action<System.Collections.Generic.List<LobbyPlayerJoined>> |
PlayerLeft
Event called when a player leave has occurred to a lobby on the server.
Declaration
public event Action<List<int>> PlayerLeftEvent Type
| Type | Description |
|---|---|
| System.Action<System.Collections.Generic.List<System.Int32>> |