public OutgoingMasterServerPeer(MasterServerConnectionBase masterServerConnection)
     : base(masterServerConnection.Application)
 {
     this.masterServerConnection = masterServerConnection;
     this.application            = masterServerConnection.Application;
     this.SetPrivateCustomTypeCache(this.application.GetS2SCustomTypeCache());
 }
 public OutgoingMasterServerPeer(MasterServerConnectionBase masterServerConnection)
     : base(masterServerConnection.Application)
 {
     this.masterServerConnection = masterServerConnection;
     this.application = masterServerConnection.Application;
     this.SetPrivateCustomTypeCache(this.application.GetS2SCustomTypeCache());
 }
 public OutgoingMasterServerPeer(MasterServerConnectionBase masterServerConnection)
     : base(masterServerConnection.Application)
 {
     this.masterServerConnection = masterServerConnection;
     this.application            = masterServerConnection.Application;
     this.SetPrivateCustomTypeCache(this.application.GetS2SCustomTypeCache());
     if (CommonSettings.Default.UseLoadPrediction)
     {
         var configFile          = GameServerSettings.Default.PredictionConfigFile;
         var applicationRootPath = masterServerConnection.Application.ApplicationRootPath;
         this.loadStatsCollector = new LoadStatsCollector(applicationRootPath, configFile, GameServerSettings.Default.PredictionFactor);
     }
 }
Esempio n. 4
0
 public void OnMasterConnectionEstablished(MasterServerConnectionBase masterServerConnectionBase)
 {
     this.serverStateManager.CheckAppOffline();
 }
Esempio n. 5
0
 public void OnMasterConnectionEstablished(MasterServerConnectionBase masterServerConnectionBase)
 {
     this.serverStateManager.CheckAppOffline();
 }
 public virtual void OnRegisteredAtMaster(MasterServerConnectionBase masterServerConnectionBase, RegisterGameServerResponse registerResponse)
 {
     masterServerConnectionBase.UpdateAllGameStates();
 }
 public virtual void OnDisconnectFromMaster(MasterServerConnectionBase masterServerConnection)
 {
 }
 public virtual void OnMasterConnectionFailed(MasterServerConnectionBase masterServerConnection)
 {
 }