Table of Contents

Class InventoryTradeVM

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

Constructors

InventoryTradeVM(InventoryLogic, ItemRosterElement, InventorySide, Action<int, bool>)

public InventoryTradeVM(InventoryLogic inventoryLogic, ItemRosterElement itemRoster, InventoryLogic.InventorySide side, Action<int, bool> onApplyTransaction)

Parameters

inventoryLogic InventoryLogic
itemRoster ItemRosterElement
side InventoryLogic.InventorySide
onApplyTransaction Action<int, bool>

Properties

ApplyExchangeHint

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

Property Value

HintViewModel

AveragePrice

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

Property Value

string

AveragePriceLbl

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

Property Value

string

InitialOtherStock

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

Property Value

int

InitialThisStock

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

Property Value

int

IsExchangeAvailable

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

Property Value

bool

IsOtherStockIncreasable

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

Property Value

bool

IsThisStockIncreasable

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

Property Value

bool

IsTradeable

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

Property Value

bool

IsTrading

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

Property Value

bool

OtherStock

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

Property Value

int

OtherStockLbl

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

Property Value

string

PieceChange

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

Property Value

string

PieceLbl

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

Property Value

string

PriceChange

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

Property Value

string

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

Methods

ExecuteApplyTransaction()

public void ExecuteApplyTransaction()

ExecuteIncreaseOtherStock()

public void ExecuteIncreaseOtherStock()

ExecuteIncreaseThisStock()

public void ExecuteIncreaseThisStock()

ExecuteRemoveZeroCounts()

public void ExecuteRemoveZeroCounts()

ExecuteReset()

public void ExecuteReset()

GetAveragePrice(int, int, bool)

public string GetAveragePrice(int totalPrice, int lastPrice, bool isBuying)

Parameters

totalPrice int
lastPrice int
isBuying bool

Returns

string

RefreshValues()

public override void RefreshValues()

UpdateItemData(ItemRosterElement, InventorySide, bool)

public void UpdateItemData(ItemRosterElement itemRoster, InventoryLogic.InventorySide side, bool forceUpdate = true)

Parameters

itemRoster ItemRosterElement
side InventoryLogic.InventorySide
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).