Class OrderOfBattleVM
- Assembly
- TaleWorlds.MountAndBlade.ViewModelCollection.dll
public class OrderOfBattleVM : ViewModel, IViewModel, INotifyPropertyChanged
- Inheritance
-
OrderOfBattleVM
- Implements
- Inherited Members
Constructors
OrderOfBattleVM()
public OrderOfBattleVM()
Fields
_allFormations
protected List<OrderOfBattleFormationItemVM> _allFormations
Field Value
_allHeroes
protected readonly List<OrderOfBattleHeroItemVM> _allHeroes
Field Value
Properties
AreCameraControlsEnabled
[DataSourceProperty]
public bool AreCameraControlsEnabled { get; set; }
Property Value
AutoDeployText
[DataSourceProperty]
public string AutoDeployText { get; set; }
Property Value
BeginMissionText
[DataSourceProperty]
public string BeginMissionText { get; set; }
Property Value
CanStartMission
[DataSourceProperty]
public bool CanStartMission { get; set; }
Property Value
ClearSelectionHint
[DataSourceProperty]
public HintViewModel ClearSelectionHint { get; set; }
Property Value
CurrentConfiguration
public List<(int, List<int>)> CurrentConfiguration { get; }
Property Value
FormationsFirstHalf
[DataSourceProperty]
public MBBindingList<OrderOfBattleFormationItemVM> FormationsFirstHalf { get; set; }
Property Value
FormationsSecondHalf
[DataSourceProperty]
public MBBindingList<OrderOfBattleFormationItemVM> FormationsSecondHalf { get; set; }
Property Value
HasSelectedHeroes
[DataSourceProperty]
public bool HasSelectedHeroes { get; set; }
Property Value
IsEnabled
[DataSourceProperty]
public bool IsEnabled { get; set; }
Property Value
IsOrderPreconfigured
public bool IsOrderPreconfigured { get; protected set; }
Property Value
IsPlayerGeneral
[DataSourceProperty]
public bool IsPlayerGeneral { get; set; }
Property Value
IsPoolAcceptingCommander
[DataSourceProperty]
public bool IsPoolAcceptingCommander { get; set; }
Property Value
IsPoolAcceptingHeroTroops
[DataSourceProperty]
public bool IsPoolAcceptingHeroTroops { get; set; }
Property Value
LastSelectedHeroItem
[DataSourceProperty]
public OrderOfBattleHeroItemVM LastSelectedHeroItem { get; set; }
Property Value
MissingFormationsHint
[DataSourceProperty]
public HintViewModel MissingFormationsHint { get; set; }
Property Value
SelectAllHint
[DataSourceProperty]
public HintViewModel SelectAllHint { get; set; }
Property Value
SelectedHeroCount
[DataSourceProperty]
public int SelectedHeroCount { get; set; }
Property Value
TotalFormationCount
protected int TotalFormationCount { get; }
Property Value
UnassignedHeroes
[DataSourceProperty]
public MBBindingList<OrderOfBattleHeroItemVM> UnassignedHeroes { get; set; }
Property Value
Methods
AssignCommander(Agent, OrderOfBattleFormationItemVM)
protected void AssignCommander(Agent agent, OrderOfBattleFormationItemVM formationItem)
Parameters
agentAgentformationItemOrderOfBattleFormationItemVM
ClearFormationItem(OrderOfBattleFormationItemVM)
protected void ClearFormationItem(OrderOfBattleFormationItemVM formationItem)
Parameters
formationItemOrderOfBattleFormationItemVM
DeselectAllFormations()
public void DeselectAllFormations()
ExecuteAcceptHeroes()
public void ExecuteAcceptHeroes()
ExecuteAutoDeploy()
public void ExecuteAutoDeploy()
ExecuteBeginMission()
public void ExecuteBeginMission()
ExecuteClearHeroSelection()
public void ExecuteClearHeroSelection()
ExecuteDisableAllClassSelections()
public void ExecuteDisableAllClassSelections()
ExecuteDisableAllFilterSelections()
public void ExecuteDisableAllFilterSelections()
ExecuteSelectAllHeroes()
public void ExecuteSelectAllHeroes()
FocusFormationItemAtIndex(int)
public void FocusFormationItemAtIndex(int index)
Parameters
indexint
GetAgentTooltip(Agent)
protected virtual List<TooltipProperty> GetAgentTooltip(Agent agent)
Parameters
agentAgent
Returns
Initialize(Mission, Camera, Action<int>, Action<int>, Action, Action, Action, Dictionary<int, Agent>)
public void Initialize(Mission mission, Camera missionCamera, Action<int> selectFormationAtIndex, Action<int> deselectFormationAtIndex, Action clearFormationSelection, Action onAutoDeploy, Action onBeginMission, Dictionary<int, Agent> formationIndicesAndSergeants)
Parameters
missionMissionmissionCameraCameraselectFormationAtIndexAction<int>deselectFormationAtIndexAction<int>clearFormationSelectionActiononAutoDeployActiononBeginMissionActionformationIndicesAndSergeantsDictionary<int, Agent>
IsAnyClassSelectionEnabled()
public bool IsAnyClassSelectionEnabled()
Returns
IsAnyFilterSelectionEnabled()
public bool IsAnyFilterSelectionEnabled()
Returns
LoadConfiguration()
protected virtual void LoadConfiguration()
OnAllFormationsAssignedSergeants(Dictionary<int, Agent>)
public void OnAllFormationsAssignedSergeants(Dictionary<int, Agent> preAssignedCommanders)
Parameters
preAssignedCommandersDictionary<int, Agent>
OnDeploymentFinalized(bool)
public void OnDeploymentFinalized(bool playerDeployed)
Parameters
playerDeployedbool
OnEscape()
public bool OnEscape()
Returns
OnFinalize()
public override void OnFinalize()
OnUnitDeployed()
public void OnUnitDeployed()
RefreshValues()
public override void RefreshValues()
SaveConfiguration()
protected virtual void SaveConfiguration()
SelectFormationItemAtIndex(int)
public void SelectFormationItemAtIndex(int index)
Parameters
indexint
Tick()
public void Tick()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).