Ruyi SDK
Namespaces
Ruyi.SDK.Online
RuyiNetLobbyService Class
RuyiNetLobbyService Methods
CreateLobby Method
CreateLobby Method (Int32, Int32, RuyiNetLobbyType, Action(RuyiNetLobby))
CreateLobby Method (Int32, Int32, RuyiNetLobbyType, Boolean, Action(RuyiNetLobby))
CreateLobby Method (Int32, Int32, RuyiNetLobbyType, String, Action(RuyiNetLobby))
CreateLobby Method (Int32, Int32, RuyiNetLobbyType, Boolean, String, Action(RuyiNetLobby))
Click or drag to resizeClick or drag to resize

RuyiNetLobbyServiceCreateLobby Method (Int32, Int32, RuyiNetLobbyType, String, ActionRuyiNetLobby)

[This is preliminary documentation and is subject to change.]

Creates a lobby that other players can find and join.

Namespace:  Ruyi.SDK.Online
Assembly:  RuyiSDK (in RuyiSDK.dll) Version: 0.9.3.3995 (0.9.3.3995)
Syntax
C#
Copy
public void CreateLobby(
	int clientIndex,
	int maxSlots,
	RuyiNetLobbyType lobbyType,
	string jsonAttributes,
	Action<RuyiNetLobby> callback
)

Parameters

clientIndex
Type: SystemInt32
The index of user
maxSlots
Type: SystemInt32
The maximum number of players that can join this lobby.
lobbyType
Type: Ruyi.SDK.OnlineRuyiNetLobbyType
Whether or not this lobby is for a RANKED MATCH or a PLAYER MATCH.
jsonAttributes
Type: SystemString
JSON string of custom attributes to attach to this lobby.
callback
Type: SystemActionRuyiNetLobby
The function to call when the task completes.
See Also

Reference

RuyiNetLobbyService Class
CreateLobby Overload
Ruyi.SDK.Online Namespace

Copyright ©Zhongshan Subor Advanced Technology Co., Ltd. 2017-2018, All right reserved

Send comments on this topic to dev-support@playruyi.com