M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable Class Referenceabstract

Inherited by TaleWorlds.CampaignSystem.BarterSystem.Barterables.DeclareWarBarterable, TaleWorlds.CampaignSystem.BarterSystem.Barterables.FiefBarterable, TaleWorlds.CampaignSystem.BarterSystem.Barterables.GoldBarterable, TaleWorlds.CampaignSystem.BarterSystem.Barterables.ItemBarterable, TaleWorlds.CampaignSystem.BarterSystem.Barterables.JoinKingdomAsClanBarterable, TaleWorlds.CampaignSystem.BarterSystem.Barterables.LeaveKingdomAsClanBarterable, TaleWorlds.CampaignSystem.BarterSystem.Barterables.MarriageBarterable, TaleWorlds.CampaignSystem.BarterSystem.Barterables.MercenaryJoinKingdomBarterable, TaleWorlds.CampaignSystem.BarterSystem.Barterables.NoAttackBarterable, TaleWorlds.CampaignSystem.BarterSystem.Barterables.PeaceBarterable, TaleWorlds.CampaignSystem.BarterSystem.Barterables.SafePassageBarterable, TaleWorlds.CampaignSystem.BarterSystem.Barterables.SetPrisonerFreeBarterable, and TaleWorlds.CampaignSystem.BarterSystem.Barterables.TransferPrisonerBarterable.

Public Types

enum  BarterSide {
  Left ,
  Right
}
 

Public Member Functions

int GetValueForFaction (IFaction faction)
 
virtual void CheckBarterLink (Barterable linkedBarterable)
 
abstract int GetUnitValueForFaction (IFaction faction)
 
void SetIsOffered (bool value)
 
void AddBarterLink (Barterable barterable)
 
void Initialize (BarterGroup barterGroup, bool isContextDependent)
 
virtual bool IsCompatible (Barterable barterable)
 
abstract ImageIdentifier GetVisualIdentifier ()
 
virtual string GetEncyclopediaLink ()
 
abstract void Apply ()
 

Protected Member Functions

 Barterable (Hero originalOwner, PartyBase originalParty)
 

Protected Attributes

MBList< Barterable_linkedBarterables
 

Properties

abstract string StringID [get]
 
Hero OriginalOwner [get]
 
PartyBase OriginalParty [get]
 
abstract TextObject Name [get]
 
virtual int MaxAmount [get]
 
int CurrentAmount [get, set]
 
bool IsOffered [get, protected set]
 
bool IsContextDependent [get, protected set]
 
BarterGroup Group [get, protected set]
 
MBReadOnlyList< BarterableLinkedBarterables [get]
 
BarterSide Side [get]
 

Member Enumeration Documentation

◆ BarterSide

Constructor & Destructor Documentation

◆ Barterable()

TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.Barterable ( Hero  originalOwner,
PartyBase  originalParty 
)
protected

Member Function Documentation

◆ GetValueForFaction()

int TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.GetValueForFaction ( IFaction  faction)

◆ CheckBarterLink()

◆ GetUnitValueForFaction()

◆ SetIsOffered()

void TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.SetIsOffered ( bool  value)

◆ AddBarterLink()

void TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.AddBarterLink ( Barterable  barterable)

◆ Initialize()

void TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.Initialize ( BarterGroup  barterGroup,
bool  isContextDependent 
)

◆ IsCompatible()

◆ GetVisualIdentifier()

◆ GetEncyclopediaLink()

◆ Apply()

Member Data Documentation

◆ _linkedBarterables

MBList<Barterable> TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable._linkedBarterables
protected

Property Documentation

◆ StringID

abstract string TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.StringID
get

◆ OriginalOwner

Hero TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.OriginalOwner
get

◆ OriginalParty

PartyBase TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.OriginalParty
get

◆ Name

abstract TextObject TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.Name
get

◆ MaxAmount

virtual int TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.MaxAmount
get

◆ CurrentAmount

int TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.CurrentAmount
getset

◆ IsOffered

bool TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.IsOffered
getprotected set

◆ IsContextDependent

bool TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.IsContextDependent
getprotected set

◆ Group

BarterGroup TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.Group
getprotected set

◆ LinkedBarterables

MBReadOnlyList<Barterable> TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.LinkedBarterables
get

◆ Side

BarterSide TaleWorlds.CampaignSystem.BarterSystem.Barterables.Barterable.Side
get