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
GetRooms(int, int, Action<bool, SWGetRoomReply, SWLobbyError>) Method
Namespace: SWNetwork.Lobby
Called by players to begin an asynchronous operation to get rooms from the Lobby server using the specified pageIndex and pageRowCount.
Maximum pageIndex is 255.
Maximum pageRowCount is 255.
Declaration
public
void
GetRooms
(
int
pageIndex
,
int
pageRowCount
,
Action
<
bool
,
SWGetRoomReply
,
SWLobbyError
>
callback
)
Parameters
Type
Description
pageIndex
int
Index of the page to get.
pageRowCount
int
Number of rooms in the page.
callback
Action<bool,
​
SWGetRoomReply
,
SWLobbyError
>
The method to invoke when the get rooms operation is complete.
​
Previous
ChangeRoomSettings(int, int, Action<bool, SWLobbyError>) Method
Next
FilterRoom(SWLobbyFilterData, byte, Action<bool, SWGetRoomFilterReply, SWLobbyError>) Method
Last modified
3yr ago
Copy link