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
ChangeRoomSettings(int, int, Action<bool, SWLobbyError>) Method
Namespace: SWNetwork.Lobby
Called by room owners to begin an asynchronous operation to change the settings of their rooms using the specified playerTimeToLive and isPrivate.
Declaration
public
void
ChangeRoomSettings
(
int
playerTimeToLive
,
bool
isPrivate
,
Action
<
bool
,
SWLobbyError
>
callback
)
Parameters
Type
Description
playerTimeToLive
int
The maximum amount of time a player can stay inactive before been removed from the room.
isPrivate
bool
Indicates whether the room is private.
callback
Action<bool,
SWLobbyError
>
The method to invoke when the change room settings operation is complete.
Previous
CreateRoom(bool, int, Action<bool, string, SWLobbyError>) Method
Next
GetRooms(int, int, Action<bool, SWGetRoomReply, SWLobbyError>) Method
Last modified
3yr ago
Copy link