public static MissionView[] OpenSiegeBattleMission(Mission mission) { MissionView missionOrderUiHandler = ViewCreator.CreateMissionOrderUIHandler(); ISiegeDeploymentView siegeDeploymentView = missionOrderUiHandler as ISiegeDeploymentView; List <MissionView> missionViewList = new List <MissionView> { ViewCreator.CreateMissionSingleplayerEscapeMenu(), ViewCreator.CreateMissionAgentLabelUIHandler(mission), ViewCreator.CreateMissionBattleScoreUIHandler(mission, new EnhancedBattleTestScoreBoardVM()), ViewCreator.CreateOptionsUIHandler(), missionOrderUiHandler, new OrderTroopPlacer(), new MissionSingleplayerUIHandler(), ViewCreator.CreateMissionAgentStatusUIHandler(mission), ViewCreator.CreateMissionMainAgentEquipmentController(mission), ViewCreator.CreateMissionMainAgentCheerControllerView(mission), new MusicBattleMissionView(true), new SiegeMissionView(), new MissionEntitySelectionUIHandler(siegeDeploymentView.OnEntitySelection, siegeDeploymentView.OnEntityHover), ViewCreator.CreateMissionBoundaryCrossingView(), ViewCreator.CreateSingleplayerMissionKillNotificationUIHandler(), new MissionBoundaryMarker(new FlagFactory("swallowtail_banner")), ViewCreator.CreateMissionFormationMarkerUIHandler(mission), ViewCreator.CreateMissionSpectatorControlView(mission), new SiegeDeploymentVisualizationMissionView(), ViewCreator.CreatePlayerRoleSelectionUIHandler(), new MissionItemContourControllerView(), new MissionAgentContourControllerView(), new EnhancedBattleTestPreloadView() }; return(missionViewList.ToArray()); }
public static MissionView[] OpenCustomSiegeBattleMission(Mission mission) { List <MissionView> missionViewList = new List <MissionView>(); mission.GetMissionBehaviour <SiegeDeploymentHandler>(); missionViewList.Add(ViewCreator.CreateMissionSingleplayerEscapeMenu()); missionViewList.Add(ViewCreator.CreateMissionAgentLabelUIHandler(mission)); missionViewList.Add(ViewCreator.CreateMissionBattleScoreUIHandler(mission, (ScoreboardVM) new CustomBattleScoreboardVM())); missionViewList.Add(ViewCreator.CreateOptionsUIHandler()); MissionView missionOrderUiHandler = ViewCreator.CreateMissionOrderUIHandler((Mission)null); missionViewList.Add(missionOrderUiHandler); missionViewList.Add((MissionView) new OrderTroopPlacer()); missionViewList.Add(ViewCreator.CreateMissionAgentStatusUIHandler(mission)); missionViewList.Add(ViewCreator.CreateMissionMainAgentEquipmentController(mission)); missionViewList.Add((MissionView) new MusicBattleMissionView(true)); missionViewList.Add((MissionView) new SiegeMissionView()); ISiegeDeploymentView isiegeDeploymentView = missionOrderUiHandler as ISiegeDeploymentView; missionViewList.Add((MissionView) new MissionEntitySelectionUIHandler(new Action <GameEntity>(isiegeDeploymentView.OnEntitySelection), new Action <GameEntity>(isiegeDeploymentView.OnEntityHover))); missionViewList.Add(ViewCreator.CreateMissionBoundaryCrossingView()); missionViewList.Add(ViewCreator.CreateSingleplayerMissionKillNotificationUIHandler()); missionViewList.Add((MissionView) new MissionBoundaryMarker((IEntityFactory) new FlagFactory("swallowtail_banner"), 2f)); missionViewList.Add(ViewCreator.CreateMissionFormationMarkerUIHandler(mission)); missionViewList.Add(ViewCreator.CreateMissionSpectatorControlView(mission)); missionViewList.Add((MissionView) new SiegeDeploymentVisualizationMissionView()); missionViewList.Add((MissionView) new MissionAgentContourControllerView()); missionViewList.Add((MissionView) new MissionCustomBattlePreloadView()); return(missionViewList.ToArray()); }
public static MissionView[] OpenBattleMission(Mission mission) { return(new List <MissionView> { ViewCreator.CreateMissionSingleplayerEscapeMenu(), ViewCreator.CreateMissionAgentLabelUIHandler(mission), ViewCreator.CreateMissionBattleScoreUIHandler(mission, new EnhancedBattleTestScoreBoardVM()), ViewCreator.CreateOptionsUIHandler(), ViewCreator.CreateMissionOrderUIHandler(), new OrderTroopPlacer(), new MissionSingleplayerUIHandler(), ViewCreator.CreateMissionAgentStatusUIHandler(mission), ViewCreator.CreateMissionMainAgentEquipmentController(mission), ViewCreator.CreateMissionMainAgentCheerControllerView(mission), new MusicBattleMissionView(false), ViewCreator.CreateMissionBoundaryCrossingView(), new MissionBoundaryWallView(), ViewCreator.CreateMissionFormationMarkerUIHandler(mission), ViewCreator.CreateSingleplayerMissionKillNotificationUIHandler(), ViewCreator.CreateMissionSpectatorControlView(mission), ViewCreator.CreatePlayerRoleSelectionUIHandler(), new MissionItemContourControllerView(), new MissionAgentContourControllerView(), new EnhancedBattleTestPreloadView() }.ToArray()); }
public static MissionView[] OpenCustomBattleMission(Mission mission) { List <MissionView> missionViewList = new List <MissionView>(); missionViewList.Add(ViewCreator.CreateMissionSingleplayerEscapeMenu()); missionViewList.Add(ViewCreator.CreateMissionAgentLabelUIHandler(mission)); missionViewList.Add(ViewCreator.CreateMissionBattleScoreUIHandler(mission, (ScoreboardVM) new CustomBattleScoreboardVM())); missionViewList.Add(ViewCreator.CreateOptionsUIHandler()); missionViewList.Add(ViewCreator.CreateMissionOrderUIHandler((Mission)null)); missionViewList.Add((MissionView) new OrderTroopPlacer()); missionViewList.Add(ViewCreator.CreateMissionAgentStatusUIHandler(mission)); missionViewList.Add(ViewCreator.CreateMissionMainAgentEquipmentController(mission)); missionViewList.Add(ViewCreator.CreateMissionMainAgentCheerControllerView(mission)); missionViewList.Add(ViewCreator.CreateMissionAgentLockVisualizerView(mission)); missionViewList.Add((MissionView) new MusicBattleMissionView(false)); missionViewList.Add(ViewCreator.CreateMissionBoundaryCrossingView()); missionViewList.Add((MissionView) new MissionBoundaryWallView()); missionViewList.Add(ViewCreator.CreateMissionFormationMarkerUIHandler(mission)); missionViewList.Add(ViewCreator.CreateSingleplayerMissionKillNotificationUIHandler()); missionViewList.Add(ViewCreator.CreateMissionSpectatorControlView(mission)); missionViewList.Add(ViewCreator.CreatePhotoModeView()); missionViewList.Add((MissionView) new MissionAgentContourControllerView()); missionViewList.Add((MissionView) new MissionCustomBattlePreloadView()); return(missionViewList.ToArray()); }
public static MissionView[] OpenTeamDeathmatchMission(Mission mission) { List <MissionView> list = new List <MissionView>(); list.Add(ViewCreator.CreateLobbyUIHandler()); list.Add(ViewCreator.CreateMissionMultiplayerPreloadView(mission)); list.Add(ViewCreator.CreateMultiplayerTeamSelectUIHandler()); list.Add(ViewCreator.CreateMissionKillNotificationUIHandler()); list.Add(ViewCreator.CreateMissionAgentStatusUIHandler(mission)); list.Add(ViewCreator.CreateMissionMainAgentEquipmentController(mission)); list.Add(ViewCreator.CreateMissionMultiplayerEscapeMenu("PeaceGameMode")); list.Add(ViewCreator.CreateMissionScoreBoardUIHandler(mission, false)); list.Add(ViewCreator.CreateMultiplayerEndOfRoundUIHandler()); list.Add(ViewCreator.CreateLobbyEquipmentUIHandler()); list.Add(ViewCreator.CreateMissionAgentLabelUIHandler(mission)); list.Add(ViewCreator.CreatePollInitiationUIHandler()); list.Add(ViewCreator.CreatePollProgressUIHandler()); list.Add(ViewCreator.CreateMissionFlagMarkerUIHandler()); list.Add(ViewCreator.CreateMultiplayerMissionHUDExtensionUIHandler()); list.Add(ViewCreator.CreateMultiplayerMissionDeathCardUIHandler(null)); list.Add(ViewCreator.CreateOptionsUIHandler()); if (!GameNetwork.IsClient) { list.Add(ViewCreator.CreateMultiplayerAdminPanelUIHandler()); } list.Add(ViewCreator.CreateMissionBoundaryCrossingView()); list.Add(new MissionBoundaryWallView()); list.Add(new MissionItemContourControllerView()); list.Add(new MissionAgentContourControllerView()); return(list.ToArray()); }
public static MissionView[] CreateCastleAssassinationView(Mission mission) { return(new MissionView[] { new CampaignMissionView(), new ConversationCameraView(), SandBoxViewCreator.CreateMissionConversationView(mission), ViewCreator.CreateMissionSingleplayerEscapeMenu(), ViewCreator.CreateOptionsUIHandler(), new MissionSingleplayerUIHandler(), ViewCreator.CreateMissionAgentStatusUIHandler(mission), ViewCreator.CreateMissionMainAgentEquipmentController(mission), new MusicSilencedMissionView(), SandBoxViewCreator.CreateMissionBarterView(), SandBoxViewCreator.CreateMissionNameMarkerUIHandler(mission), new MissionItemContourControllerView(), new MissionAgentContourControllerView(), new MissionSettlementPrepareView() }); }
public static MissionView[] OpenTestMission(Mission mission) { List <MissionView> missionViewList = new List <MissionView>(); missionViewList.Add(ViewCreator.CreateMissionAgentStatusUIHandler(mission)); // missionViewList.Add(ViewCreator.CreateMissionAgentLabelUIHandler(mission)); missionViewList.Add(ViewCreator.CreateOrderTroopPlacerView(mission)); // missionViewList.Add(ViewCreator.CreateMissionScoreBoardUIHandler(mission, false)); missionViewList.Add(ViewCreator.CreateMissionKillNotificationUIHandler()); missionViewList.Add((MissionView) new MissionItemContourControllerView()); missionViewList.Add((MissionView) new MissionAgentContourControllerView()); missionViewList.Add(ViewCreator.CreateMissionFlagMarkerUIHandler()); // missionViewList.Add(ViewCreator.CreateOptionsUIHandler()); // missionViewList.Add(ViewCreator.CreateMissionBoundaryCrossingView()); // missionViewList.Add((MissionView) new MissionBoundaryWallView()); // missionViewList.Add((MissionView) new SpectatorCameraView()); missionViewList.Add(ViewCreator.CreateMissionOrderUIHandler()); missionViewList.Add(new CaptureTheBannerLordMissionView(mission)); return(missionViewList.ToArray()); }