JoinRoom(string, Action<bool, SWJoinRoomReply, SWLobbyError>) Method

Namespace: SWNetwork.Lobby

Called by players to begin an asynchronous operation to join a room in the Lobby server using the specified roomId. This method allows players to join both private and public rooms.

Declaration

public void JoinRoom(string roomId, Action<bool, SWJoinRoomReply, SWLobbyError> callback)

Parameters

Type

Description

roomId

string

ID of the room to join.

callback

Action<bool,

‚ÄčSWJoinRoomReply, SWLobbyError>

The method to invoke when the join room operation is complete.