Tutorial videos
Home
Developer
Discord
Search…
SWNetwork SDK Overview
Installation
Custom Unity Package
Tutorials
Third-Person Shooter
Basic Lobby
SDK
Network Client
Game Play
Lobby
Register Player
Message Player
Create Room
Change Room Settings
Get Rooms
Filter Rooms
Join Room
Message Room
Get Players in Room
Get Room Custom Data
Change Room Custom Data
Kick Players
Start Room
Leave Room
Lobby Room Events
Classes
Methods
Register(Action<bool, SWRegisterReply, SWLobbyError>) Method
MessagePlayer(string, string, Action<bool, SWLobbyError>) Method
CreateRoom(bool, int, Action<bool, string, SWLobbyError>) Method
ChangeRoomSettings(int, int, Action<bool, SWLobbyError>) Method
GetRooms(int, int, Action<bool, SWGetRoomReply, SWLobbyError>) Method
FilterRoom(SWLobbyFilterData, byte, Action<bool, SWGetRoomFilterReply, SWLobbyError>) Method
JoinRoom(string, Action<bool, SWJoinRoomReply, SWLobbyError>) Method
JoinRoomRandomly(Action<bool, SWJoinRoomReply, SWLobbyError>) Method
JoinOrCreateRoom(bool, int, int, Action<bool, SWJoinRoomReply, SWLobbyError>) Method
MessageRoom(string, Action<bool, SWLobbyError>) Method
GetRoomCustomData(Action<bool, SWGetRoomCustomDataReply, SWLobbyError>) Method
GetPlayersInRoom(Action<bool, SWGetPlayersReply, SWLobbyError>) Method
ChangeRoomCustomData(string, Action<bool, SWLobbyError>) Method
StartRoom(Action<bool, SWLobbyError>) Method
LeaveRoom(Action<bool, SWLobbyError>) Method
Open Source Software Used
Credits
Powered By
GitBook
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.
Previous
FilterRoom(SWLobbyFilterData, byte, Action<bool, SWGetRoomFilterReply, SWLobbyError>) Method
Next
JoinRoomRandomly(Action<bool, SWJoinRoomReply, SWLobbyError>) Method
Last modified
3yr ago
Copy link