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
agent
AgentformationItem
OrderOfBattleFormationItemVM
ClearFormationItem(OrderOfBattleFormationItemVM)
protected void ClearFormationItem(OrderOfBattleFormationItemVM formationItem)
Parameters
formationItem
OrderOfBattleFormationItemVM
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
index
int
GetAgentTooltip(Agent)
protected virtual List<TooltipProperty> GetAgentTooltip(Agent agent)
Parameters
agent
Agent
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
mission
MissionmissionCamera
CameraselectFormationAtIndex
Action<int>deselectFormationAtIndex
Action<int>clearFormationSelection
ActiononAutoDeploy
ActiononBeginMission
ActionformationIndicesAndSergeants
Dictionary<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
preAssignedCommanders
Dictionary<int, Agent>
OnDeploymentFinalized(bool)
public void OnDeploymentFinalized(bool playerDeployed)
Parameters
playerDeployed
bool
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
index
int
Tick()
public void Tick()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).