ServiceJoinRoom Method

Joins the specified room using the provided PIN for authentication.

Definition

Namespace: Alteruna.Multiplayer.Core
Assembly: Alteruna.Multiplayer (in Alteruna.Multiplayer.dll) Version: 2.1.3+c5328b35489e83c42e288435f5acf6115fd519e0
C#
public void JoinRoom(
	Room room,
	int pin = 0
)

Parameters

room  Room
The room to join. Must not be null.
pin  Int32  (Optional)
The PIN code required to access the room.

Exceptions

AlterunaException Thrown if the given room session id is the same as the current room session id.
AlterunaServiceNotStartedException Thrown if the Alteruna service has not properly been initialized and started.

See Also