Exemplo n.º 1
0
 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()
     });
 }
Exemplo n.º 2
0
        public override void OnMissionBehaviourInitialize(Mission mission)
        {
            try
            {
                // Add the marker overlay for appropriate mission types
                if (mission.GetMissionBehaviour <MissionNameMarkerUIHandler>() == null &&
                    (MissionHelpers.InSiegeMission() ||
                     MissionHelpers.InFieldBattleMission() ||
                     Mission.Current?.GetMissionBehaviour <TournamentFightMissionController>() != null))
                {
                    mission.AddMissionBehaviour(SandBoxViewCreator.CreateMissionNameMarkerUIHandler(mission));
                }

                mission.AddMissionBehaviour(new BLTAdoptAHeroCommonMissionBehavior());
                mission.AddMissionBehaviour(new BLTAdoptAHeroCustomMissionBehavior());
                mission.AddMissionBehaviour(new BLTSummonBehavior());
                mission.AddMissionBehaviour(new BLTRemoveAgentsBehavior());
                mission.AddMissionBehaviour(new BLTHeroPowersMissionBehavior());
            }
            catch (Exception e)
            {
                Log.Exception(nameof(OnMissionBehaviourInitialize), e);
            }
        }