Table of Contents

Class OrderOfBattleVM

Namespace
TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle
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

List<OrderOfBattleFormationItemVM>

_allHeroes

protected readonly List<OrderOfBattleHeroItemVM> _allHeroes

Field Value

List<OrderOfBattleHeroItemVM>

Properties

AreCameraControlsEnabled

[DataSourceProperty]
public bool AreCameraControlsEnabled { get; set; }

Property Value

bool

AutoDeployText

[DataSourceProperty]
public string AutoDeployText { get; set; }

Property Value

string

BeginMissionText

[DataSourceProperty]
public string BeginMissionText { get; set; }

Property Value

string

CanStartMission

[DataSourceProperty]
public bool CanStartMission { get; set; }

Property Value

bool

ClearSelectionHint

[DataSourceProperty]
public HintViewModel ClearSelectionHint { get; set; }

Property Value

HintViewModel

CurrentConfiguration

public List<(int, List<int>)> CurrentConfiguration { get; }

Property Value

List<(int, List<int>)>

FormationsFirstHalf

[DataSourceProperty]
public MBBindingList<OrderOfBattleFormationItemVM> FormationsFirstHalf { get; set; }

Property Value

MBBindingList<OrderOfBattleFormationItemVM>

FormationsSecondHalf

[DataSourceProperty]
public MBBindingList<OrderOfBattleFormationItemVM> FormationsSecondHalf { get; set; }

Property Value

MBBindingList<OrderOfBattleFormationItemVM>

HasSelectedHeroes

[DataSourceProperty]
public bool HasSelectedHeroes { get; set; }

Property Value

bool

IsEnabled

[DataSourceProperty]
public bool IsEnabled { get; set; }

Property Value

bool

IsOrderPreconfigured

public bool IsOrderPreconfigured { get; protected set; }

Property Value

bool

IsPlayerGeneral

[DataSourceProperty]
public bool IsPlayerGeneral { get; set; }

Property Value

bool

IsPoolAcceptingCommander

[DataSourceProperty]
public bool IsPoolAcceptingCommander { get; set; }

Property Value

bool

IsPoolAcceptingHeroTroops

[DataSourceProperty]
public bool IsPoolAcceptingHeroTroops { get; set; }

Property Value

bool

LastSelectedHeroItem

[DataSourceProperty]
public OrderOfBattleHeroItemVM LastSelectedHeroItem { get; set; }

Property Value

OrderOfBattleHeroItemVM

MissingFormationsHint

[DataSourceProperty]
public HintViewModel MissingFormationsHint { get; set; }

Property Value

HintViewModel

SelectAllHint

[DataSourceProperty]
public HintViewModel SelectAllHint { get; set; }

Property Value

HintViewModel

SelectedHeroCount

[DataSourceProperty]
public int SelectedHeroCount { get; set; }

Property Value

int

TotalFormationCount

protected int TotalFormationCount { get; }

Property Value

int

UnassignedHeroes

[DataSourceProperty]
public MBBindingList<OrderOfBattleHeroItemVM> UnassignedHeroes { get; set; }

Property Value

MBBindingList<OrderOfBattleHeroItemVM>

Methods

AssignCommander(Agent, OrderOfBattleFormationItemVM)

protected void AssignCommander(Agent agent, OrderOfBattleFormationItemVM formationItem)

Parameters

agent Agent
formationItem 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

List<TooltipProperty>

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 Mission
missionCamera Camera
selectFormationAtIndex Action<int>
deselectFormationAtIndex Action<int>
clearFormationSelection Action
onAutoDeploy Action
onBeginMission Action
formationIndicesAndSergeants Dictionary<int, Agent>

IsAnyClassSelectionEnabled()

public bool IsAnyClassSelectionEnabled()

Returns

bool

IsAnyFilterSelectionEnabled()

public bool IsAnyFilterSelectionEnabled()

Returns

bool

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

bool

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).