FindOrCreateLobby
method in Coherence.Cloud.LobbiesService
Methods
public void FindOrCreateLobby(FindLobbyOptions findOptions, CreateLobbyOptions createOptions, Action<RequestResponse<LobbySession>> onRequestFinished)
Endpoint to do matchmaking and find a suitable Lobby. If no suitable Lobby is found, one will be created using the CreateLobbyOptions.
Parameters
Type | Name | Description |
---|---|---|
FindLobbyOptions | findOptions | Options that will be used to try to find a suitable Lobby. |
CreateLobbyOptions | createOptions | Options that will be used to create a Lobby if no suitable Lobby is found. |
Action<RequestResponse<LobbySession>> | onRequestFinished | Callback that will be invoked when the request finished. |