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
Fields
_linkedBarterables
protected MBList<Barterable> _linkedBarterables
Field Value
Properties
CurrentAmount
public int CurrentAmount { get; set; }
Property Value
Group
public BarterGroup Group { get; protected set; }
Property Value
IsContextDependent
public bool IsContextDependent { get; protected set; }
Property Value
IsOffered
public bool IsOffered { get; protected set; }
Property Value
LinkedBarterables
public MBReadOnlyList<Barterable> LinkedBarterables { get; }
Property Value
MaxAmount
public virtual int MaxAmount { get; }
Property Value
Name
public abstract TextObject Name { get; }
Property Value
OriginalOwner
public Hero OriginalOwner { get; }
Property Value
OriginalParty
public PartyBase OriginalParty { get; }
Property Value
Side
public Barterable.BarterSide Side { get; }
Property Value
StringID
public abstract string StringID { get; }
Property Value
Methods
AddBarterLink(Barterable)
public void AddBarterLink(Barterable barterable)
Parameters
barterable
Barterable
Apply()
public abstract void Apply()
AutoGeneratedInstanceCollectObjects(List<object>)
protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
CheckBarterLink(Barterable)
public virtual void CheckBarterLink(Barterable linkedBarterable)
Parameters
linkedBarterable
Barterable
GetEncyclopediaLink()
public virtual string GetEncyclopediaLink()
Returns
GetUnitValueForFaction(IFaction)
public abstract int GetUnitValueForFaction(IFaction faction)
Parameters
faction
IFaction
Returns
GetValueForFaction(IFaction)
public int GetValueForFaction(IFaction faction)
Parameters
faction
IFaction
Returns
GetVisualIdentifier()
public abstract ImageIdentifier GetVisualIdentifier()
Returns
Initialize(BarterGroup, bool)
public void Initialize(BarterGroup barterGroup, bool isContextDependent)
Parameters
barterGroup
BarterGroupisContextDependent
bool
IsCompatible(Barterable)
public virtual bool IsCompatible(Barterable barterable)
Parameters
barterable
Barterable
Returns
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).