private void TryLaunch() { if (this.CanLaunchNow) { ShipCountdown.InitiateCountdown(this); } }
public override void PreOpen() { base.PreOpen(); PlayerKnowledgeDatabase.Save(); ShipCountdown.CancelCountdown(); this.anyGameFiles = GenFilePaths.AllSavedGameFiles.Any <FileInfo>(); }
private void TryLaunch() { if (CanLaunchNow) { ShipCountdown.InitiateCountdown(parentBuilding); } }
public void ForceLaunch() { ShipCountdown.InitiateCountdown(this); if (base.Spawned) { QuestUtility.SendQuestTargetSignals(base.Map.Parent.questTags, "LaunchedShip"); } }
public static void ShipCountdownUpdate() { if (ShipCountdown.timeLeft > 0f) { ShipCountdown.timeLeft -= Time.deltaTime; if (ShipCountdown.timeLeft <= 0f) { ShipCountdown.CountdownEnded(); } } }
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(); } } }
public static void Init() { PlayerKnowledgeDatabase.Save(); ShipCountdown.CancelCountdown(); anyMapFiles = GenFilePaths.AllSavedGameFiles.Any(); }
public static void Init() { PlayerKnowledgeDatabase.Save(); ShipCountdown.CancelCountdown(); MainMenuDrawer.anyMapFiles = GenFilePaths.AllSavedGameFiles.Any <FileInfo>(); }