Class ServerConnection
Inheritance
System.Object
ServerConnection
Implements
IConnectionCallbacks
Assembly: cs.temp.dll.dll
Syntax
public class ServerConnection : BaseNetworkConnection
Properties
CurrentRegion
Declaration
public ServerConnection.Region CurrentRegion { get; }
Property Value
Methods
ConnectUsingSettings(String)
Declaration
public IEnumerator ConnectUsingSettings(string nickName = "")
Parameters
Type |
Name |
Description |
System.String |
nickName |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerator |
|
GetCurrentRegionIndex()
Declaration
public int GetCurrentRegionIndex()
Returns
Type |
Description |
System.Int32 |
|
GetEnabledRegions()
Declaration
public List<ServerConnection.Region> GetEnabledRegions()
Returns
GetRegionByIndex(Int32)
Declaration
public ServerConnection.Region GetRegionByIndex(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
OnConnected()
Declaration
public void OnConnected()
OnConnectedToMaster()
Declaration
public void OnConnectedToMaster()
OnCustomAuthenticationFailed(String)
Declaration
public void OnCustomAuthenticationFailed(string debugMessage)
Parameters
Type |
Name |
Description |
System.String |
debugMessage |
|
OnCustomAuthenticationResponse(Dictionary<String, Object>)
Declaration
public void OnCustomAuthenticationResponse(Dictionary<string, object> data)
Parameters
Type |
Name |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
data |
|
OnDisconnected(DisconnectCause)
Declaration
public void OnDisconnected(DisconnectCause cause)
Parameters
Type |
Name |
Description |
DisconnectCause |
cause |
|
OnRegionListReceived(RegionHandler)
Declaration
public void OnRegionListReceived(RegionHandler regionHandler)
Parameters
Type |
Name |
Description |
RegionHandler |
regionHandler |
|
SwitchRegion(ServerConnection.Region)
Declaration
public IEnumerator SwitchRegion(ServerConnection.Region region)
Parameters
Returns
Type |
Description |
System.Collections.Generic.IEnumerator |
|
Implements
IConnectionCallbacks