CreateRoom(bool, int, Action<bool, string, SWLobbyError>) Method
Namespace: SWNetwork.Lobby
Last updated
Namespace: SWNetwork.Lobby
Last updated
Called by players to begin an asynchronous operation to create a room and using the specified wantRT, and PlayerLimit.
Called by players to begin an asynchronous operation to create a room and using the specified string room custom data, wantRT, and PlayerLimit.
Called by players to begin an asynchronous operation to create a room and using the specified serializable object room custom data, wantRT, and PlayerLimit.
Called by players to begin an asynchronous operation to create a room and using the specified string room custom data, wantRT, PlayerLimit, and index data.
Called by players to begin an asynchronous operation to create a room and using the specified serializable object room custom data, wantRT, PlayerLimit, and index data.
Called by players to begin an asynchronous operation to create a room and using the specified string room custom data, wantRT, PlayerLimit, PlayerTimeToLive, isPrivate, and index data.
Called by players to begin an asynchronous operation to create a room and using the specified serializable object room custom data, wantRT, PlayerLimit, PlayerTimeToLive, isPrivate, and index data.
Parameters
Type
Description
wantRT
bool
Indicates if the room requires RealTime service.
playerLimit
int
The maximum number of players can join the room.
callback
Action<bool,
string, SWLobbyError>
The method to invoke when the create room operation is complete.
Parameters
Type
Description
customData
string
The string room custom data.
wantRT
bool
Indicates whether the room requires RealTime service.
playerLimit
int
The maximum number of players can join the room.
callback
Action<bool,
string, SWLobbyError>
The method to invoke when the create room operation is complete.
Parameters
Type
Description
customData
object
The serializable object room custom data
wantRT
bool
Indicates whether the room requires RealTime service
playerLimit
int
The maximum number of players can join the room.
callback
Action<bool,
string, SWLobbyError>
The method to invoke when the create room operation is complete.
Parameters
Type
Description
customData
string
The string room custom data.
wantRT
bool
Indicates whether the room requires RealTime service.
playerLimit
int
The maximum number of players can join the room.
indexData
The index data of the room.
callback
Action<bool,
string, SWLobbyError>
The method to invoke when the create room operation is complete.
Parameters
Type
Description
customData
object
The serializable object room custom data.
wantRT
bool
Indicates whether the room requires RealTime service.
playerLimit
int
The maximum number of players can join the room.
indexData
The index data of the room.
callback
Action<bool,
string, SWLobbyError>
The method to invoke when the create room operation is complete.
Parameters
Type
Description
customData
string
The string room custom data.
wantRT
bool
Indicates whether the room requires RealTime service.
playerLimit
int
The maximum number of players can join the room.
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.
indexData
The index data of the room.
callback
Action<bool,
string, SWLobbyError>
The method to invoke when the create room operation is complete.
Parameters
Type
Description
customData
string
The serializable object room custom data.
wantRT
bool
Indicates whether the room requires RealTime service.
playerLimit
int
The maximum number of players can join the room.
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.
indexData
The index data of the room.
callback
Action<bool,
string, SWLobbyError>
The method to invoke when the create room operation is complete.