Register(Action<bool, SWRegisterReply, SWLobbyError>) Method

Namespace: SWNetwork.Lobby

Called by players to begin an asynchronous operation to register to the Lobby.

Declaration

public void Register(Action<bool, SWRegisterReply, SWLobbyError> callback)

Parameters

Type

Description

callback

The method to invoke when the registration operation is complete.

Overloads

Register(string, Action) Method

Called by players to begin an asynchronous operation to register to the Lobby using the specified string as custom data.

Declaration

public void Register(string customData, Action<bool, SWRegisterReply, SWLobbyError> callback)

Parameters

Type

Description

customData

string

The string used as the player's custom data.

callback

The method to invoke when the registration operation is complete.

Register(object, Action) Method

Called by players to begin an asynchronous operation to register to the Lobby using the specified object as custom data.

Declaration

public void Register(object customData, Action<bool, SWRegisterReply, SWLobbyError> callback)

Parameters

Type

Description

customData

object

The serializable object used as the player's custom data.

callback

The method to invoke when the registration operation is complete.

Last updated