示例#1
0
 public void UseMyServer(string serverAddress, int serverPort, string application)
 {
     this.HostType      = ServerSettings.HostingOption.SelfHosted;
     this.AppID         = ((application == null) ? "master" : application);
     this.ServerAddress = serverAddress;
     this.ServerPort    = serverPort;
 }
示例#2
0
 public void UseCloud(string cloudAppid, CloudRegionCode code)
 {
     this.HostType        = ServerSettings.HostingOption.PhotonCloud;
     this.AppID           = cloudAppid;
     this.PreferredRegion = code;
 }
示例#3
0
 public void UseCloudBestResion(string cloudAppid)
 {
     this.HostType = ServerSettings.HostingOption.BestRegion;
     this.AppID    = cloudAppid;
 }
示例#4
0
 public void UseCloud(string cloudAppid)
 {
     this.HostType = ServerSettings.HostingOption.PhotonCloud;
     this.AppID    = cloudAppid;
 }