Table of Contents

Class OrderOfBattleFormationItemVM

Namespace
TaleWorlds.MountAndBlade.ViewModelCollection.OrderOfBattle
Assembly
TaleWorlds.MountAndBlade.ViewModelCollection.dll
public class OrderOfBattleFormationItemVM : ViewModel, IViewModel, INotifyPropertyChanged
Inheritance
OrderOfBattleFormationItemVM
Implements
Inherited Members

Constructors

OrderOfBattleFormationItemVM(Camera)

public OrderOfBattleFormationItemVM(Camera missionCamera)

Parameters

missionCamera Camera

Fields

GetFormationWithCondition

public static Func<Func<OrderOfBattleFormationItemVM, bool>, IEnumerable<OrderOfBattleFormationItemVM>> GetFormationWithCondition

Field Value

Func<Func<OrderOfBattleFormationItemVM, bool>, IEnumerable<OrderOfBattleFormationItemVM>>

GetTotalTroopCountWithFilter

public static Func<DeploymentFormationClass, FormationFilterType, int> GetTotalTroopCountWithFilter

Field Value

Func<DeploymentFormationClass, FormationFilterType, int>

HasAnyTroopWithClass

public static Func<FormationClass, bool> HasAnyTroopWithClass

Field Value

Func<FormationClass, bool>

OnAcceptCommander

public static Action<OrderOfBattleFormationItemVM> OnAcceptCommander

Field Value

Action<OrderOfBattleFormationItemVM>

OnAcceptHeroTroops

public static Action<OrderOfBattleFormationItemVM> OnAcceptHeroTroops

Field Value

Action<OrderOfBattleFormationItemVM>

OnClassSelectionToggled

public static Action<OrderOfBattleFormationItemVM> OnClassSelectionToggled

Field Value

Action<OrderOfBattleFormationItemVM>

OnDeselection

public static Action<OrderOfBattleFormationItemVM> OnDeselection

Field Value

Action<OrderOfBattleFormationItemVM>

OnFilterSelectionToggled

public static Action<OrderOfBattleFormationItemVM> OnFilterSelectionToggled

Field Value

Action<OrderOfBattleFormationItemVM>

OnFilterUseToggled

public static Action<OrderOfBattleFormationItemVM> OnFilterUseToggled

Field Value

Action<OrderOfBattleFormationItemVM>

OnHeroesChanged

public static Action OnHeroesChanged

Field Value

Action

OnSelection

public static Action<OrderOfBattleFormationItemVM> OnSelection

Field Value

Action<OrderOfBattleFormationItemVM>

Properties

ActiveFilterItems

[DataSourceProperty]
public MBBindingList<OrderOfBattleFormationFilterSelectorItemVM> ActiveFilterItems { get; set; }

Property Value

MBBindingList<OrderOfBattleFormationFilterSelectorItemVM>

AssignCommanderHint

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

Property Value

HintViewModel

AssignHeroTroopHint

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

Property Value

HintViewModel

CantAdjustHint

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

Property Value

HintViewModel

Classes

[DataSourceProperty]
public MBBindingList<OrderOfBattleFormationClassVM> Classes { get; set; }

Property Value

MBBindingList<OrderOfBattleFormationClassVM>

Commander

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

Property Value

OrderOfBattleHeroItemVM

CommanderSlotHint

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

Property Value

HintViewModel

FilterItems

[DataSourceProperty]
public MBBindingList<OrderOfBattleFormationFilterSelectorItemVM> FilterItems { get; set; }

Property Value

MBBindingList<OrderOfBattleFormationFilterSelectorItemVM>

Formation

public Formation Formation { get; }

Property Value

Formation

FormationClassSelector

[DataSourceProperty]
public SelectorVM<OrderOfBattleFormationClassSelectorItemVM> FormationClassSelector { get; set; }

Property Value

SelectorVM<OrderOfBattleFormationClassSelectorItemVM>

FormationIsEmptyText

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

Property Value

string

HasCommander

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

Property Value

bool

HasFormation

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

Property Value

bool

HasHeroTroops

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

Property Value

bool

HeroTroopSlotHint

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

Property Value

HintViewModel

HeroTroops

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

Property Value

MBBindingList<OrderOfBattleHeroItemVM>

IsAcceptingCommander

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

Property Value

bool

IsAcceptingHeroTroops

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

Property Value

bool

IsAdjustable

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

Property Value

bool

IsBeingFocused

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

Property Value

bool

IsCaptainSlotHighlightActive

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

Property Value

bool

IsClassSelectionActive

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

Property Value

bool

IsControlledByPlayer

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

Property Value

bool

IsFilterSelectionActive

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

Property Value

bool

IsFiltered

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

Property Value

bool

IsHeroTroopsOverflowing

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

Property Value

bool

IsMarkerShown

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

Property Value

bool

IsSelectable

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

Property Value

bool

IsSelected

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

Property Value

bool

IsTypeSelectionHighlightActive

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

Property Value

bool

OrderOfBattleFormationClassInt

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

Property Value

int

OverflowHeroTroopCountText

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

Property Value

string

ScreenPosition

[DataSourceProperty]
public Vec2 ScreenPosition { get; set; }

Property Value

Vec2

TitleText

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

Property Value

string

Tooltip

[DataSourceProperty]
public BasicTooltipViewModel Tooltip { get; set; }

Property Value

BasicTooltipViewModel

TroopCount

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

Property Value

int

WSign

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

Property Value

int

Methods

AddHeroTroop(OrderOfBattleHeroItemVM)

public void AddHeroTroop(OrderOfBattleHeroItemVM heroItem)

Parameters

heroItem OrderOfBattleHeroItemVM

ExecuteAcceptCommander()

public void ExecuteAcceptCommander()

ExecuteAcceptHeroTroops()

public void ExecuteAcceptHeroTroops()

GetOrderOfBattleClass()

public DeploymentFormationClass GetOrderOfBattleClass()

Returns

DeploymentFormationClass

HasClass(FormationClass)

public bool HasClass(FormationClass formationClass)

Parameters

formationClass FormationClass

Returns

bool

HasClasses(FormationClass[])

public bool HasClasses(FormationClass[] formationClasses)

Parameters

formationClasses FormationClass[]

Returns

bool

HasFilter(FormationFilterType)

public bool HasFilter(FormationFilterType filter)

Parameters

filter FormationFilterType

Returns

bool

HasOnlyOneClass()

public bool HasOnlyOneClass()

Returns

bool

OnHeroSelectionUpdated(int, bool)

public void OnHeroSelectionUpdated(int selectedHeroCount, bool hasOwnHeroTroopInSelection)

Parameters

selectedHeroCount int
hasOwnHeroTroopInSelection bool

OnSizeChanged()

public void OnSizeChanged()

OnlyHasClass(FormationClass)

public bool OnlyHasClass(FormationClass formationClass)

Parameters

formationClass FormationClass

Returns

bool

RefreshFormation(Formation, DeploymentFormationClass, bool)

public void RefreshFormation(Formation formation, DeploymentFormationClass overriddenClass = DeploymentFormationClass.Unset, bool mustExist = false)

Parameters

formation Formation
overriddenClass DeploymentFormationClass
mustExist bool

RefreshMarkerWorldPosition()

public void RefreshMarkerWorldPosition()

RefreshValues()

public override void RefreshValues()

RemoveHeroTroop(OrderOfBattleHeroItemVM)

public void RemoveHeroTroop(OrderOfBattleHeroItemVM heroItem)

Parameters

heroItem OrderOfBattleHeroItemVM

Tick()

public void Tick()

UnassignCommander()

public void UnassignCommander()

UpdateAdjustable()

public void UpdateAdjustable()

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).