Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Method (1 of 2)
Create a new lobby and add the creating PlayFab entity to it.
public static Lobby CreateAndJoinLobby(PFEntityKey creator,
LobbyCreateConfiguration createConfiguration, LobbyJoinConfiguration joinConfiguration)
| parameter | description |
|---|---|
| creator | The local PlayFab entity creating the lobby. |
| createConfiguration | The initial configuration data used when creating the lobby. |
| joinConfiguration | The initial configuration data for the member creating and joining the lobby. |
Return Value (1 of 2)
Output lobby object which can be used to queue operations for immediate execution of this operation.
Remarks (1 of 2)
This is an asynchronous operation. Upon successful completion, the title will be provided a OnLobbyMemberAdded followed by a OnLobbyCreateAndJoinCompleted with the OnLobbyCreateAndJoinCompleted.result field set to Success. Upon a failed completion, the title will be provided a OnLobbyCreateAndJoinCompleted with the OnLobbyCreateAndJoinCompleted.result field set to a failed error code.
Method (2 of 2)
Create a new lobby and add the creating PlayFab entity to it.
public static Lobby CreateAndJoinLobby(PlayFabAuthenticationContext creator,
LobbyCreateConfiguration createConfiguration, LobbyJoinConfiguration joinConfiguration)
| parameter | description |
|---|---|
| creator | The local PlayFab entity creating the lobby. |
| createConfiguration | The initial configuration data used when creating the lobby. |
| joinConfiguration | The initial configuration data for the member creating and joining the lobby. |
Return Value (2 of 2)
Output lobby object which can be used to queue operations for immediate execution of this operation.
Remarks (2 of 2)
This is an asynchronous operation. Upon successful completion, the title will be provided a OnLobbyMemberAdded followed by a OnLobbyCreateAndJoinCompleted with the OnLobbyCreateAndJoinCompleted result field set to Success. Upon a failed completion, the title will be provided a OnLobbyCreateAndJoinCompleted with the OnLobbyCreateAndJoinCompleted result field set to a failed error code.
See Also
- class Lobby
- class PFEntityKey
- class LobbyCreateConfiguration
- class LobbyJoinConfiguration
- class PlayFabMultiplayer
- namespace PlayFab.Multiplayer