예제 #1
0
 private void TryLaunch()
 {
     if (this.CanLaunchNow)
     {
         ShipCountdown.InitiateCountdown(this);
     }
 }
예제 #2
0
 public override void PreOpen()
 {
     base.PreOpen();
     PlayerKnowledgeDatabase.Save();
     ShipCountdown.CancelCountdown();
     this.anyGameFiles = GenFilePaths.AllSavedGameFiles.Any <FileInfo>();
 }
 private void TryLaunch()
 {
     if (CanLaunchNow)
     {
         ShipCountdown.InitiateCountdown(parentBuilding);
     }
 }
예제 #4
0
 public void ForceLaunch()
 {
     ShipCountdown.InitiateCountdown(this);
     if (base.Spawned)
     {
         QuestUtility.SendQuestTargetSignals(base.Map.Parent.questTags, "LaunchedShip");
     }
 }
예제 #5
0
 public static void ShipCountdownUpdate()
 {
     if (ShipCountdown.timeLeft > 0f)
     {
         ShipCountdown.timeLeft -= Time.deltaTime;
         if (ShipCountdown.timeLeft <= 0f)
         {
             ShipCountdown.CountdownEnded();
         }
     }
 }
예제 #6
0
 public static void Init()
 {
     PlayerKnowledgeDatabase.Save();
     ShipCountdown.CancelCountdown();
     anyMapFiles = GenFilePaths.AllSavedGameFiles.Any();
     foreach (ExpansionDef allExpansion in ModLister.AllExpansions)
     {
         if (allExpansion.Status != ExpansionStatus.NotInstalled && !allExpansion.isCore)
         {
             BackgroundMain.overrideBGImage = allExpansion.BackgroundImage;
             break;
         }
     }
 }
        public override void Notify_QuestSignalReceived(Signal signal)
        {
            base.Notify_QuestSignalReceived(signal);
            if (!(signal.tag == inSignal) || ShipCountdown.CountingDown)
            {
                return;
            }
            if (!Find.TickManager.Paused)
            {
                Find.TickManager.CurTimeSpeed = TimeSpeed.Normal;
            }
            if (!signal.args.TryGetArg("SENTCOLONISTS", out List <Pawn> arg))
            {
                arg = null;
            }
            StringBuilder stringBuilder = new StringBuilder();

            if (arg != null)
            {
                for (int i = 0; i < arg.Count; i++)
                {
                    stringBuilder.AppendLine("   " + arg[i].LabelCap);
                }
                Find.StoryWatcher.statsRecord.colonistsLaunched += arg.Count;
            }
            ShipCountdown.InitiateCountdown(GameVictoryUtility.MakeEndCredits(introText, endingText, stringBuilder.ToString()));
            if (arg == null)
            {
                return;
            }
            for (int j = 0; j < arg.Count; j++)
            {
                if (!arg[j].Destroyed)
                {
                    arg[j].Destroy();
                }
            }
        }
예제 #8
0
 public static void Init()
 {
     PlayerKnowledgeDatabase.Save();
     ShipCountdown.CancelCountdown();
     anyMapFiles = GenFilePaths.AllSavedGameFiles.Any();
 }
예제 #9
0
 public static void Init()
 {
     PlayerKnowledgeDatabase.Save();
     ShipCountdown.CancelCountdown();
     MainMenuDrawer.anyMapFiles = GenFilePaths.AllSavedGameFiles.Any <FileInfo>();
 }