コード例 #1
0
 private void TryLaunch()
 {
     if (this.CanLaunchNow)
     {
         ShipCountdown.InitiateCountdown(this);
     }
 }
コード例 #2
0
 private void TryLaunch()
 {
     if (CanLaunchNow)
     {
         ShipCountdown.InitiateCountdown(parentBuilding);
     }
 }
コード例 #3
0
 public void ForceLaunch()
 {
     ShipCountdown.InitiateCountdown(this);
     if (base.Spawned)
     {
         QuestUtility.SendQuestTargetSignals(base.Map.Parent.questTags, "LaunchedShip");
     }
 }
コード例 #4
0
        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();
                }
            }
        }