public void StartEndQuest(byte routeIndex) { int endIndex = (int)QuestSection.Endgame; if (activeQuests[endIndex] == Quest.NoQuest || activeQuests[endIndex] == null) { questAccessMap[endIndex] = true; if ((Knowledge.ResearchRoute)routeIndex == Knowledge.ResearchRoute.Foundation) { var scn = new FoundationRouteScenario(); GameMaster.realMaster.BindScenario(scn); scn.StartScenario(); } else { activeQuests[endIndex] = new Quest(QuestType.Endgame, routeIndex); } } else { AnnouncementCanvasController.MakeImportantAnnounce(Localization.GetAnnouncementString(GameAnnouncements.AlreadyHaveEndquest)); } if (openedQuest == -1 & GetComponent <Image>().enabled) { PrepareBasicQuestWindow(); } }
public static FDR_Subscenario GetSubscenario(FoundationScenarioStep step, FoundationRouteScenario baseScenario) { switch (step) { case FoundationScenarioStep.Finish: return(new FDR_Finish(baseScenario)); case FoundationScenarioStep.OuterRingBuilding: return(new FDR_OuterRingBuilding(baseScenario)); case FoundationScenarioStep.PierPreparing: return(new FDR_PierPreparing(baseScenario)); case FoundationScenarioStep.InnerRingBuilding: return(new FDR_InnerRingBuilding(baseScenario)); case FoundationScenarioStep.AnchorStart: return(new FDR_AnchorStart(baseScenario)); case FoundationScenarioStep.AnchorBuilding: return(new FDR_AnchorBuilding(baseScenario)); case FoundationScenarioStep.Begin: return(new FDR_Begin(baseScenario)); default: return(null); } }
public FDR_Finish(FoundationRouteScenario i_scn) : base(i_scn) { }
public FDR_OuterRingBuilding(FoundationRouteScenario i_scn) : base(i_scn) { }
public FDR_PierPreparing(FoundationRouteScenario i_scn) : base(i_scn) { }
public FDR_AnchorStart(FoundationRouteScenario i_scn) : base(i_scn) { }
public FDR_AnchorBuilding(FoundationRouteScenario i_scn) : base(i_scn) { }
public FDR_Begin(FoundationRouteScenario i_scn) : base(i_scn) { }
public FDR_ConditionSubscenario(FoundationRouteScenario i_scenario) : base(i_scenario) { }
public FDR_Subscenario(FoundationRouteScenario i_scenario) : base(FOUNDATION_ROUTE_ID) { scenario = i_scenario; }
public FDR_Example(FoundationRouteScenario i_scn) : base(i_scn) { }
public void LinkScenario(FoundationRouteScenario frs) { scenario = frs; }