CreateRoom
Name
CreateRoom - Creates a new room where other players can join. Once the room is created, the player is automatically added to it.
Synopsis
Namespace: LoadBalancer.Client.Game
public async Task<CreateRoomResult> CreateRoom(CreateRoomParameters parameters)
Parameters
CreateRoomParameters consists of the following parameters:
RoomIdstring- The unique identifier of the room which distiguishes it from other rooms on the server.RoomPropertiesKeyValueCollection- A collection of key-value pairs containing the room properties.PlayerIdstring- The unique identifier of the player.PlayerPropertiesKeyValueCollection- A collection of key-value pairs containing the player properties.RoomObjectsObject[]- An array containing objects loaded into the room scene.
Return Value
The CreateRoomResult, containing the created room properties:
RoomIdstring- The unique identifier of the created room.RoomPropertiesKeyValueCollection- A collection of key-value pairs containing the room properties.PlayerIdstring- The unique identifier of the player who created the room.PlayerPropertiesKeyValueCollection- A collection of key-value pairs containing the player properties who created the room.RoomObjectsObject[]- An array containing objects loaded into the room scene.