Table of Contents

Class Barterable

Namespace
TaleWorlds.CampaignSystem.BarterSystem.Barterables
Assembly
TaleWorlds.CampaignSystem.dll
public abstract class Barterable
Inheritance
Barterable
Derived
Inherited Members

Constructors

Barterable(Hero, PartyBase)

protected Barterable(Hero originalOwner, PartyBase originalParty)

Parameters

originalOwner Hero
originalParty PartyBase

Fields

_linkedBarterables

protected MBList<Barterable> _linkedBarterables

Field Value

MBList<Barterable>

Properties

CurrentAmount

public int CurrentAmount { get; set; }

Property Value

int

Group

public BarterGroup Group { get; protected set; }

Property Value

BarterGroup

IsContextDependent

public bool IsContextDependent { get; protected set; }

Property Value

bool

IsOffered

public bool IsOffered { get; protected set; }

Property Value

bool

LinkedBarterables

public MBReadOnlyList<Barterable> LinkedBarterables { get; }

Property Value

MBReadOnlyList<Barterable>

MaxAmount

public virtual int MaxAmount { get; }

Property Value

int

Name

public abstract TextObject Name { get; }

Property Value

TextObject

OriginalOwner

public Hero OriginalOwner { get; }

Property Value

Hero

OriginalParty

public PartyBase OriginalParty { get; }

Property Value

PartyBase

Side

public Barterable.BarterSide Side { get; }

Property Value

Barterable.BarterSide

StringID

public abstract string StringID { get; }

Property Value

string

Methods

public void AddBarterLink(Barterable barterable)

Parameters

barterable Barterable

Apply()

public abstract void Apply()

AutoGeneratedInstanceCollectObjects(List<object>)

protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>
public virtual void CheckBarterLink(Barterable linkedBarterable)

Parameters

linkedBarterable Barterable
public virtual string GetEncyclopediaLink()

Returns

string

GetUnitValueForFaction(IFaction)

public abstract int GetUnitValueForFaction(IFaction faction)

Parameters

faction IFaction

Returns

int

GetValueForFaction(IFaction)

public int GetValueForFaction(IFaction faction)

Parameters

faction IFaction

Returns

int

GetVisualIdentifier()

public abstract ImageIdentifier GetVisualIdentifier()

Returns

ImageIdentifier

Initialize(BarterGroup, bool)

public void Initialize(BarterGroup barterGroup, bool isContextDependent)

Parameters

barterGroup BarterGroup
isContextDependent bool

IsCompatible(Barterable)

public virtual bool IsCompatible(Barterable barterable)

Parameters

barterable Barterable

Returns

bool

SetIsOffered(bool)

public void SetIsOffered(bool value)

Parameters

value bool

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