Table of Contents

Class BarterItemVM

Namespace
TaleWorlds.CampaignSystem.ViewModelCollection.Barter
Assembly
TaleWorlds.CampaignSystem.ViewModelCollection.dll
public class BarterItemVM : EncyclopediaLinkVM, IViewModel, INotifyPropertyChanged
Inheritance
BarterItemVM
Implements
Inherited Members

Constructors

BarterItemVM(Barterable, BarterTransferEventDelegate, Action, bool)

public BarterItemVM(Barterable barterable, BarterItemVM.BarterTransferEventDelegate OnTransfer, Action onAmountChange, bool isFixed = false)

Parameters

barterable Barterable
OnTransfer BarterItemVM.BarterTransferEventDelegate
onAmountChange Action
isFixed bool

Fields

Barterable

public Barterable Barterable

Field Value

Barterable

IsEntireStackModifierActive

public static bool IsEntireStackModifierActive

Field Value

bool

IsFiveStackModifierActive

public static bool IsFiveStackModifierActive

Field Value

bool

_isOffered

public bool _isOffered

Field Value

bool

Properties

BarterableType

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

Property Value

string

CurrentOfferedAmount

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

Property Value

int

CurrentOfferedAmountText

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

Property Value

string

FiefFileName

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

Property Value

string

HasVisualIdentifier

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

Property Value

bool

IsItemTransferrable

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

Property Value

bool

IsMultiple

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

Property Value

bool

IsOffered

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

Property Value

bool

IsSelectorActive

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

Property Value

bool

ItemLbl

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

Property Value

string

TotalItemCount

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

Property Value

int

TotalItemCountText

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

Property Value

string

VisualIdentifier

[DataSourceProperty]
public ImageIdentifierVM VisualIdentifier { get; set; }

Property Value

ImageIdentifierVM

Methods

ExecuteAction()

public void ExecuteAction()

ExecuteAddOffered()

public void ExecuteAddOffered()

ExecuteRemoveOffered()

public void ExecuteRemoveOffered()

RefreshCompabilityWithItem(BarterItemVM, bool)

public void RefreshCompabilityWithItem(BarterItemVM item, bool isItemGotOffered)

Parameters

item BarterItemVM
isItemGotOffered bool

RefreshValues()

public override void RefreshValues()

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