public void SetRunNextStageToTarget() { if (!NetworkServer.active) { Debug.LogWarning("[Server] function 'System.Void RoR2.SeerStationController::SetRunNextStageToTarget()' called on client"); return; } SceneDef sceneDef = SceneCatalog.GetSceneDef(this.targetSceneDefIndex); if (sceneDef) { SceneExitController sceneExitController = this.explicitTargetSceneExitController; if (!sceneExitController && this.fallBackToFirstActiveExitController) { sceneExitController = InstanceTracker.FirstOrNull <SceneExitController>(); } if (sceneExitController) { sceneExitController.destinationScene = sceneDef; sceneExitController.useRunNextStageScene = false; Chat.SendBroadcastChat(new Chat.SimpleChatMessage { baseToken = sceneDef.portalSelectionMessageString }); } } }
// Token: 0x060012E0 RID: 4832 RVA: 0x000510E0 File Offset: 0x0004F2E0 public override void OnStartClient() { base.OnStartClient(); SceneDef targetScene = null; if ((ulong)this.targetSceneDefIndex < (ulong)((long)SceneCatalog.sceneDefCount)) { targetScene = SceneCatalog.GetSceneDef(this.targetSceneDefIndex); } this.OnTargetSceneChanged(targetScene); }
// Token: 0x060012DE RID: 4830 RVA: 0x000510A0 File Offset: 0x0004F2A0 private void SetTargetSceneDefIndex(int newTargetSceneDefIndex) { this.NetworktargetSceneDefIndex = newTargetSceneDefIndex; this.OnTargetSceneChanged(SceneCatalog.GetSceneDef(this.targetSceneDefIndex)); }