Register(Action<bool, SWRegisterReply, SWLobbyError>) Method
Namespace: SWNetwork.Lobby
Called by players to begin an asynchronous operation to register to the Lobby.
public void Register(Action<bool, SWRegisterReply, SWLobbyError> callback)
Parameters | Type | Description |
callback | The method to invoke when the registration operation is complete. |
Called by players to begin an asynchronous operation to register to the Lobby using the specified string as custom data.
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. |
Called by players to begin an asynchronous operation to register to the Lobby using the specified object as custom data.
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 modified 3yr ago