public void UseMyServer(string serverAddress, int serverPort, string application)
 {
     this.HostType = HostingOption.SelfHosted;
     this.AppID = (application != null) ? application : DefaultAppID;
     this.ServerAddress = serverAddress;
     this.ServerPort = serverPort;
 }
示例#2
0
 public void UseMyServer(string serverAddress, int serverPort, string application)
 {
     this.HostType      = HostingOption.SelfHosted;
     this.AppID         = (application != null) ? application : DefaultAppID;
     this.ServerAddress = serverAddress;
     this.ServerPort    = serverPort;
 }
 public void UseCloud(string cloudAppid)
 {
     this.HostType = HostingOption.PhotonCloud;
     this.AppID = cloudAppid;
     this.ServerAddress = DefaultCloudServerUrl;
     this.ServerPort = DefaultMasterPort;
 }
 public void UseCloud(string cloudAppid, int regionIndex)
 {
     this.HostType = HostingOption.PhotonCloud;
     this.AppID = cloudAppid;
     this.ServerAddress = FindServerAddressForRegion(regionIndex);
     this.ServerPort = DefaultMasterPort;
 }
示例#5
0
 public void UseCloud(string cloudAppid)
 {
     this.HostType      = HostingOption.PhotonCloud;
     this.AppID         = cloudAppid;
     this.ServerAddress = DefaultCloudServerUrl;
     this.ServerPort    = DefaultMasterPort;
 }
 public void UseCloud(string cloudAppid, int regionIndex)
 {
     this.HostType      = HostingOption.PhotonCloud;
     this.AppID         = cloudAppid;
     this.ServerAddress = FindServerAddressForRegion(regionIndex);
     this.ServerPort    = DefaultMasterPort;
 }
示例#7
0
 public void UseMyServer(string serverAddress, int serverPort, string application)
 {
     this.HostType      = HostingOption.SelfHosted;
     this.AppID         = (application == null) ? "master" : application;
     this.ServerAddress = serverAddress;
     this.ServerPort    = serverPort;
 }
示例#8
0
 public void UseMyServer(string serverAddress, int serverPort, string application)
 {
     HostType      = HostingOption.SelfHosted;
     AppID         = application == null ? "master" : application;
     ServerAddress = serverAddress;
     ServerPort    = serverPort;
 }
    public void UseMyServer(string serverAddress, int serverPort, string application)
    {
        this.HostType = HostingOption.SelfHosted;
        this.AppID = (application != null) ? application : "master";

		//if (StaticHostIP.Equals(""))
        this.ServerAddress = serverAddress;
		//else
		//this.ServerAddress = StaticHostIP;
        this.ServerPort = serverPort;
    }
示例#10
0
 public void UseCloud(string cloudAppid, CloudRegionCode code)
 {
     this.HostType        = HostingOption.PhotonCloud;
     this.AppID           = cloudAppid;
     this.PreferredRegion = code;
 }
示例#11
0
 public void UseCloud(string cloudAppid)
 {
     this.HostType = HostingOption.PhotonCloud;
     this.AppID    = cloudAppid;
 }
示例#12
0
 public void UseCloudBestRegion(string cloudAppid)
 {
     this.HostType = HostingOption.BestRegion;
     this.AppID    = cloudAppid;
 }
示例#13
0
 public void UseCloud(string cloudAppid, CloudRegionCode code)
 {
     this.HostType = HostingOption.PhotonCloud;
     this.AppID = cloudAppid;
     this.PreferredRegion = code;
 }
示例#14
0
 public void UseCloud(string cloudAppid)
 {
     this.HostType = HostingOption.PhotonCloud;
     this.AppID = cloudAppid;
 }
示例#15
0
 public void UseCloudBestRegion(string cloudAppid)
 {
     this.HostType = HostingOption.BestRegion;
     this.AppID = cloudAppid;
 }
示例#16
0
 public void UseCloudBestResion(string cloudAppid)
 {
     HostType = HostingOption.BestRegion;
     AppID    = cloudAppid;
 }