C# Class ServerSettings, PaperCowboys

Inheritance: UnityEngine.ScriptableObject
Show file Open project: Gamieon/PaperCowboys Class Usage Examples

Public Properties

Property Type Description
AppID string
CloudServerRegionNames string[]
CloudServerRegionPrefixes string[]
DefaultAppID string
DefaultCloudServerUrl string
DefaultMasterPort int
DefaultServerAddress string
HostType HostingOption
RpcList List
ServerAddress string
ServerPort int

Public Methods

Method Description
FindRegionForServerAddress ( string server ) : int
FindServerAddressForRegion ( int regionIndex ) : string
ToString ( ) : string
UseCloud ( string cloudAppid, int regionIndex ) : void
UseMyServer ( string serverAddress, int serverPort, string application ) : void

Method Details

FindRegionForServerAddress() public static method

public static FindRegionForServerAddress ( string server ) : int
server string
return int

FindServerAddressForRegion() public static method

public static FindServerAddressForRegion ( int regionIndex ) : string
regionIndex int
return string

ToString() public method

public ToString ( ) : string
return string

UseCloud() public method

public UseCloud ( string cloudAppid, int regionIndex ) : void
cloudAppid string
regionIndex int
return void

UseMyServer() public method

public UseMyServer ( string serverAddress, int serverPort, string application ) : void
serverAddress string
serverPort int
application string
return void

Property Details

AppID public property

public string AppID
return string

CloudServerRegionNames public static property

public static string[] CloudServerRegionNames
return string[]

CloudServerRegionPrefixes public static property

public static string[] CloudServerRegionPrefixes
return string[]

DefaultAppID public static property

public static string DefaultAppID
return string

DefaultCloudServerUrl public static property

public static string DefaultCloudServerUrl
return string

DefaultMasterPort public static property

public static int DefaultMasterPort
return int

DefaultServerAddress public static property

public static string DefaultServerAddress
return string

HostType public property

public HostingOption HostType
return HostingOption

RpcList public property

public List RpcList
return List

ServerAddress public property

public string ServerAddress
return string

ServerPort public property

public int ServerPort
return int