Class InventoryTradeVM
- 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
InventoryLogicitemRoster
ItemRosterElementside
InventoryLogic.InventorySideonApplyTransaction
Action<int, bool>
Properties
ApplyExchangeHint
[DataSourceProperty]
public HintViewModel ApplyExchangeHint { get; set; }
Property Value
AveragePrice
[DataSourceProperty]
public string AveragePrice { get; set; }
Property Value
AveragePriceLbl
[DataSourceProperty]
public string AveragePriceLbl { get; set; }
Property Value
InitialOtherStock
[DataSourceProperty]
public int InitialOtherStock { get; set; }
Property Value
InitialThisStock
[DataSourceProperty]
public int InitialThisStock { get; set; }
Property Value
IsExchangeAvailable
[DataSourceProperty]
public bool IsExchangeAvailable { get; set; }
Property Value
IsOtherStockIncreasable
[DataSourceProperty]
public bool IsOtherStockIncreasable { get; set; }
Property Value
IsThisStockIncreasable
[DataSourceProperty]
public bool IsThisStockIncreasable { get; set; }
Property Value
IsTradeable
[DataSourceProperty]
public bool IsTradeable { get; set; }
Property Value
IsTrading
[DataSourceProperty]
public bool IsTrading { get; set; }
Property Value
OtherStock
[DataSourceProperty]
public int OtherStock { get; set; }
Property Value
OtherStockLbl
[DataSourceProperty]
public string OtherStockLbl { get; set; }
Property Value
PieceChange
[DataSourceProperty]
public string PieceChange { get; set; }
Property Value
PieceLbl
[DataSourceProperty]
public string PieceLbl { get; set; }
Property Value
PriceChange
[DataSourceProperty]
public string PriceChange { get; set; }
Property Value
ThisStock
[DataSourceProperty]
public int ThisStock { get; set; }
Property Value
ThisStockLbl
[DataSourceProperty]
public string ThisStockLbl { get; set; }
Property Value
TotalStock
[DataSourceProperty]
public int TotalStock { get; set; }
Property Value
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
Returns
RefreshValues()
public override void RefreshValues()
UpdateItemData(ItemRosterElement, InventorySide, bool)
public void UpdateItemData(ItemRosterElement itemRoster, InventoryLogic.InventorySide side, bool forceUpdate = true)
Parameters
itemRoster
ItemRosterElementside
InventoryLogic.InventorySideforceUpdate
bool
Events
RemoveZeroCounts
public static event Action RemoveZeroCounts
Event Type
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).