Method CreateOrJoinLobbyAsync
CreateOrJoinLobbyAsync(string, string, int, CreateLobbyOptions)
Create or join a Lobby with a given name and ID and specified player limit. Async operation.
Declaration
Task<Lobby> CreateOrJoinLobbyAsync(string lobbyId, string lobbyName, int maxPlayers, CreateLobbyOptions options = null)
Parameters
Type | Name | Description |
---|---|---|
string | lobbyId | ID of the lobby to create/join |
string | lobbyName | Name of the lobby to create/join |
int | maxPlayers | Player limit |
Create |
options | Optional request parameters |
Returns
Exceptions
Type | Condition |
---|---|
Argument |
|
Invalid |
|
Lobby |