JoinRoom

Name

JoinRoom - Joins a specific room.

Synopsis

Namespace: LoadBalancer.Client.Game

public async Task<JoinRoomResult> JoinRoom(JoinRoomParameters parameters)

Parameters

JoinRoomParameters consists of the following parameters:

  • RoomId string - The unique identifier of the room obtained from the invocation of the FindRoom method.
  • PlayerId string - The unique identifier of the player who joins the room.
  • PlayerProperties KeyValueCollection - A collection of key-value pairs containing the player properties who created the room.

Return Value

The JoinRoomResult containing properties related to the room, player and room objects:

  • RoomId string - The unique identifier of the created room.
  • RoomProperties KeyValueCollection - A collection of key-value pairs containing the room properties.
  • PlayerId string - The unique identifier of the player who created the room.
  • PlayerProperties KeyValueCollection - A collection of key-value pairs containing the player properties who created the room.
  • RoomObjects Object[] - An array containing objects loaded into the room scene.