Example #1
0
 private void StartRun()
 {
     if (!NetworkServer.active)
     {
         Debug.LogWarning("[Server] function 'System.Void RoR2.PreGameController::StartRun()' called on client");
         return;
     }
     this.pregameState = PreGameController.PregameState.Launched;
     NetworkSession.instance.BeginRun(PreGameController.GameModeConVar.instance.runPrefabComponent, this.readOnlyRuleBook, this.runSeed);
 }
Example #2
0
 public void StartLaunch()
 {
     if (!NetworkServer.active)
     {
         Debug.LogWarning("[Server] function 'System.Void RoR2.PreGameController::StartLaunch()' called on client");
         return;
     }
     if (this.pregameState == PreGameController.PregameState.Idle)
     {
         this.pregameState           = PreGameController.PregameState.Launching;
         this.NetworklaunchStartTime = GameNetworkManager.singleton.unpredictedServerFixedTime;
     }
 }
Example #3
0
 // Token: 0x0600103A RID: 4154 RVA: 0x000475C0 File Offset: 0x000457C0
 private void Update()
 {
     if (this.pregameState == PreGameController.PregameState.Launching)
     {
         if (GameNetworkManager.singleton.unpredictedServerFixedTime - this.launchStartTime >= 0.5f && NetworkServer.active)
         {
             this.StartRun();
             return;
         }
     }
     else
     {
         PreGameController.PregameState pregameState = this.pregameState;
     }
 }