public override void OnCreated(MissionView entranceView) { List <MissionBehaviour> list = new List <MissionBehaviour> { new RTSCameraSelectCharacterView(), new RTSCameraLogic(), new HideHUDView(), new FlyCameraMissionView() }; foreach (var missionBehaviour in list) { MissionStartingManager.AddMissionBehaviour(entranceView, missionBehaviour); } foreach (var extension in RTSCameraExtension.Extensions) { foreach (var missionBehaviour in extension.CreateMissionBehaviours(entranceView.Mission)) { MissionStartingManager.AddMissionBehaviour(entranceView, missionBehaviour); } } foreach (var extension in MissionExtensionCollection.Extensions) { foreach (var missionBehaviour in extension.CreateMissionBehaviours(entranceView.Mission)) { MissionStartingManager.AddMissionBehaviour(entranceView, missionBehaviour); } } }
public override void OnCreated(MissionView entranceView) { var list = new List <MissionBehaviour> { new BattleMiniMapView() }; foreach (var missionBehaviour in list) { MissionStartingManager.AddMissionBehaviour(entranceView, missionBehaviour); } }
public override void OnCreated(MissionView entranceView) { List <MissionBehaviour> list = new List <MissionBehaviour> { new SetPlayerHealthLogic(), new CinematicCameraMenuView() }; foreach (var missionBehaviour in list) { MissionStartingManager.AddMissionBehaviour(entranceView, missionBehaviour); } }
public override void OnCreated(MissionView entranceView) { var config = RTSCameraConfig.Get(); if (config.AttackSpecificFormation) { PatchChargeToFormation.Patch(); } if (config.FixCircularArrangement) { PatchCircularFormation.Patch(); } List <MissionBehaviour> list = new List <MissionBehaviour> { new RTSCameraSelectCharacterView(), new RTSCameraLogic(), new HideHUDView(), new RTSCameraMenuView(), new FlyCameraMissionView(), new RTSCameraGameKeyConfigView(), new FormationColorMissionView(), new RTSCameraOrderTroopPlacer() }; foreach (var missionBehaviour in list) { MissionStartingManager.AddMissionBehaviour(entranceView, missionBehaviour); } foreach (var extension in RTSCameraExtension.Extensions) { foreach (var missionBehaviour in extension.CreateMissionBehaviours(entranceView.Mission)) { MissionStartingManager.AddMissionBehaviour(entranceView, missionBehaviour); } } foreach (var extension in MissionExtensionCollection.Extensions) { foreach (var missionBehaviour in extension.CreateMissionBehaviours(entranceView.Mission)) { MissionStartingManager.AddMissionBehaviour(entranceView, missionBehaviour); } } }
public override void OnCreated(MissionView entranceView) { var config = CommandSystemConfig.Get(); if (config.AttackSpecificFormation) { PatchChargeToFormation.Patch(); } List <MissionBehaviour> list = new List <MissionBehaviour> { new CommandSystemLogic(), new CommandSystemOrderTroopPlacer(), new DragWhenCommandView() }; foreach (var missionBehaviour in list) { MissionStartingManager.AddMissionBehaviour(entranceView, missionBehaviour); } }