Table of Contents

Class OrderOfBattleFormationClassVM

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

Constructors

OrderOfBattleFormationClassVM(OrderOfBattleFormationItemVM, FormationClass)

public OrderOfBattleFormationClassVM(OrderOfBattleFormationItemVM formationItem, FormationClass formationClass = FormationClass.NumberOfAllFormations)

Parameters

formationItem OrderOfBattleFormationItemVM
formationClass FormationClass

Fields

BelongedFormationItem

public readonly OrderOfBattleFormationItemVM BelongedFormationItem

Field Value

OrderOfBattleFormationItemVM

CanAdjustWeight

public static Func<OrderOfBattleFormationClassVM, bool> CanAdjustWeight

Field Value

Func<OrderOfBattleFormationClassVM, bool>

GetTotalCountOfTroopType

public static Func<FormationClass, int> GetTotalCountOfTroopType

Field Value

Func<FormationClass, int>

OnClassChanged

public static Action<OrderOfBattleFormationClassVM, FormationClass> OnClassChanged

Field Value

Action<OrderOfBattleFormationClassVM, FormationClass>

OnWeightAdjustedCallback

public static Action<OrderOfBattleFormationClassVM> OnWeightAdjustedCallback

Field Value

Action<OrderOfBattleFormationClassVM>

Properties

Class

public FormationClass Class { get; set; }

Property Value

FormationClass

IsAdjustable

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

Property Value

bool

IsLocked

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

Property Value

bool

IsUnset

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

Property Value

bool

IsWeightHighlightActive

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

Property Value

bool

LockWeightHint

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

Property Value

HintViewModel

PreviousWeight

public int PreviousWeight { get; }

Property Value

int

ShownFormationClass

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

Property Value

int

Weight

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

Property Value

int

WeightText

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

Property Value

string

Methods

RefreshValues()

public override void RefreshValues()

SetWeightAdjustmentLock(bool)

public void SetWeightAdjustmentLock(bool isLocked)

Parameters

isLocked bool

UpdateWeightAdjustable()

public void UpdateWeightAdjustable()

UpdateWeightText()

public void UpdateWeightText()

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