Beamable SDK
|
Public Member Functions | |
Promise< LobbyQueryResponse > | FindLobbies () |
Find lobbies for the player to join. More... | |
Promise< Lobby > | CreateLobby (string name, LobbyRestriction restriction, SimGameTypeRef gameTypeRef=null, string description=null, List< Tag > playerTags=null, int? maxPlayers=null, int? passcodeLength=null, List< string > statsToInclude=null) |
Create a new Lobby with the current player as the host. More... | |
Promise< Lobby > | JoinLobby (string lobbyId, List< Tag > playerTags=null) |
Join a Lobby given its id. More... | |
Promise< Lobby > | JoinLobbyByPasscode (string passcode, List< Tag > playerTags=null) |
Join a Lobby given its passcode. More... | |
Promise< Lobby > | GetLobby (string lobbyId) |
Fetch the current status of a Lobby. More... | |
Promise | LeaveLobby (string lobbyId) |
Notify the given lobby that the player intends to leave. More... | |
Promise< Lobby > | AddPlayerTags (string lobbyId, List< Tag > tags, string playerId=null, bool replace=false) |
Add a list of Tag to the given player in the given lobby. More... | |
Promise< Lobby > | RemovePlayerTags (string lobbyId, List< string > tags, string playerId=null) |
Remove a list of tags from the given player in the given Lobby. More... | |
Promise | KickPlayer (string lobbyId, string playerId) |
Send a request to the given Lobby to remove the player with the given playerId. If the requesting player doesn't have the capability to boot players, this will throw an exception. More... | |
Promise< Lobby > Beamable.Experimental.Api.Lobbies.ILobbyApi.AddPlayerTags | ( | string | lobbyId, |
List< Tag > | tags, | ||
string | playerId = null , |
||
bool | replace = false |
||
) |
Add a list of Tag to the given player in the given lobby.
lobbyId | The id of the Lobby. |
tags | List of Tag to associate with the player. |
playerId | The id of the player. |
Implemented in Beamable.Experimental.Api.Lobbies.LobbyService.
Promise< Lobby > Beamable.Experimental.Api.Lobbies.ILobbyApi.CreateLobby | ( | string | name, |
LobbyRestriction | restriction, | ||
SimGameTypeRef | gameTypeRef = null , |
||
string | description = null , |
||
List< Tag > | playerTags = null , |
||
int? | maxPlayers = null , |
||
int? | passcodeLength = null , |
||
List< string > | statsToInclude = null |
||
) |
Create a new Lobby with the current player as the host.
name | Name of the lobby |
restriction | The privacy value for the created lobby. |
gameTypeRef | If this lobby should be subject to matchmaking, a gametype ref should be provided |
description | Short optional description of what the lobby is for. |
playerTags | Arbitrary list of tags to include on the creating player. |
passcodeLength | Configurable value for how long the generated passcode should be. |
maxPlayers | Configurable value for the maximum number of players this lobby can have. |
statsToInclude | Stat keys to include with Lobby requests. |
Implemented in Beamable.Experimental.Api.Lobbies.LobbyService.
Promise< LobbyQueryResponse > Beamable.Experimental.Api.Lobbies.ILobbyApi.FindLobbies | ( | ) |
Find lobbies for the player to join.
Implemented in Beamable.Experimental.Api.Lobbies.LobbyService.
Fetch the current status of a Lobby.
lobbyId | The id of the Lobby. |
Implemented in Beamable.Experimental.Api.Lobbies.LobbyService.
Promise< Lobby > Beamable.Experimental.Api.Lobbies.ILobbyApi.JoinLobby | ( | string | lobbyId, |
List< Tag > | playerTags = null |
||
) |
Join a Lobby given its id.
lobbyId | The id of the Lobby to join. |
playerTags | List of Tag to associate with the joining player. |
Implemented in Beamable.Experimental.Api.Lobbies.LobbyService.
Promise< Lobby > Beamable.Experimental.Api.Lobbies.ILobbyApi.JoinLobbyByPasscode | ( | string | passcode, |
List< Tag > | playerTags = null |
||
) |
Join a Lobby given its passcode.
passcode | The passcode of the Lobby to join. |
playerTags | List of Tag to associate with the joining player. |
Implemented in Beamable.Experimental.Api.Lobbies.LobbyService.
Promise Beamable.Experimental.Api.Lobbies.ILobbyApi.KickPlayer | ( | string | lobbyId, |
string | playerId | ||
) |
Send a request to the given Lobby to remove the player with the given playerId. If the requesting player doesn't have the capability to boot players, this will throw an exception.
lobbyId | The id of the Lobby. |
playerId | The id of the player to remove. |
Implemented in Beamable.Experimental.Api.Lobbies.LobbyService.
Promise Beamable.Experimental.Api.Lobbies.ILobbyApi.LeaveLobby | ( | string | lobbyId | ) |
Notify the given lobby that the player intends to leave.
lobbyId | The id of the Lobby to leave. |
Implemented in Beamable.Experimental.Api.Lobbies.LobbyService.
Promise< Lobby > Beamable.Experimental.Api.Lobbies.ILobbyApi.RemovePlayerTags | ( | string | lobbyId, |
List< string > | tags, | ||
string | playerId = null |
||
) |
Remove a list of tags from the given player in the given Lobby.
lobbyId | The id of the Lobby. |
tags | List of Tag to remove from the player. |
playerId | The id of the player. |
Implemented in Beamable.Experimental.Api.Lobbies.LobbyService.