Table of Contents

Class PartyTradeVM

Namespace
TaleWorlds.CampaignSystem.ViewModelCollection.Party
Assembly
TaleWorlds.CampaignSystem.ViewModelCollection.dll
public class PartyTradeVM : ViewModel, IViewModel, INotifyPropertyChanged
Inheritance
PartyTradeVM
Implements
Inherited Members

Constructors

PartyTradeVM(PartyScreenLogic, TroopRosterElement, PartyRosterSide, bool, bool, Action<int, bool>)

public PartyTradeVM(PartyScreenLogic partyScreenLogic, TroopRosterElement troopRoster, PartyScreenLogic.PartyRosterSide side, bool isTransfarable, bool isPrisoner, Action<int, bool> onApplyTransaction)

Parameters

partyScreenLogic PartyScreenLogic
troopRoster TroopRosterElement
side PartyScreenLogic.PartyRosterSide
isTransfarable bool
isPrisoner bool
onApplyTransaction Action<int, bool>

Properties

InitialOtherStock

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

Property Value

int

InitialThisStock

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

Property Value

int

IsOtherStockIncreasable

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

Property Value

bool

IsThisStockIncreasable

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

Property Value

bool

IsTransfarable

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

Property Value

bool

OtherStock

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

Property Value

int

ThisStock

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

Property Value

int

ThisStockLbl

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

Property Value

string

TotalStock

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

Property Value

int

TotalStockLbl

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

Property Value

string

Methods

ExecuteApplyTransaction()

public void ExecuteApplyTransaction()

ExecuteIncreaseOtherStock()

public void ExecuteIncreaseOtherStock()

ExecuteIncreasePlayerStock()

public void ExecuteIncreasePlayerStock()

ExecuteRemoveZeroCounts()

public void ExecuteRemoveZeroCounts()

ExecuteReset()

public void ExecuteReset()

FindTroopFromSide(CharacterObject, PartyRosterSide, bool)

public TroopRosterElement? FindTroopFromSide(CharacterObject character, PartyScreenLogic.PartyRosterSide side, bool isPrisoner)

Parameters

character CharacterObject
side PartyScreenLogic.PartyRosterSide
isPrisoner bool

Returns

TroopRosterElement?

RefreshValues()

public override void RefreshValues()

UpdateTroopData(TroopRosterElement, PartyRosterSide, bool)

public void UpdateTroopData(TroopRosterElement troopRoster, PartyScreenLogic.PartyRosterSide side, bool forceUpdate = true)

Parameters

troopRoster TroopRosterElement
side PartyScreenLogic.PartyRosterSide
forceUpdate bool

Events

RemoveZeroCounts

public static event Action RemoveZeroCounts

Event Type

Action

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