Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
 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());
 }
Exemplo n.º 3
0
        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());
        }
Exemplo n.º 4
0
        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());
        }