M&B: Bannerlord 1.2.9
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.BarterSystem.BarterData Class Reference

Public Member Functions

 BarterData (Hero offerer, Hero other, PartyBase offererParty, PartyBase otherParty, BarterManager.BarterContextInitializer contextInitializer=null, int persuasionCostReduction=0, bool isAiBarter=false)
 
void AddBarterable< T > (Barterable barterable, bool isContextDependent=false)
 
void AddBarterGroup (BarterGroup barterGroup)
 
List< BarterGroupGetBarterGroups ()
 
List< BarterableGetBarterables ()
 
BarterGroup GetBarterGroup< T > ()
 
List< BarterableGetOfferedBarterables ()
 

Public Attributes

readonly Hero OffererHero
 
readonly Hero OtherHero
 
readonly PartyBase OffererParty
 
readonly PartyBase OtherParty
 
readonly BarterManager.BarterContextInitializer ContextInitializer
 
readonly int PersuasionCostReduction
 

Properties

IFaction OffererMapFaction [get]
 
IFaction OtherMapFaction [get]
 
bool IsAiBarter [get]
 

Constructor & Destructor Documentation

◆ BarterData()

TaleWorlds.CampaignSystem.BarterSystem.BarterData.BarterData ( Hero offerer,
Hero other,
PartyBase offererParty,
PartyBase otherParty,
BarterManager.BarterContextInitializer contextInitializer = null,
int persuasionCostReduction = 0,
bool isAiBarter = false )

Member Function Documentation

◆ AddBarterable< T >()

void TaleWorlds.CampaignSystem.BarterSystem.BarterData.AddBarterable< T > ( Barterable barterable,
bool isContextDependent = false )

◆ AddBarterGroup()

void TaleWorlds.CampaignSystem.BarterSystem.BarterData.AddBarterGroup ( BarterGroup barterGroup)

◆ GetBarterGroups()

List< BarterGroup > TaleWorlds.CampaignSystem.BarterSystem.BarterData.GetBarterGroups ( )

◆ GetBarterables()

List< Barterable > TaleWorlds.CampaignSystem.BarterSystem.BarterData.GetBarterables ( )

◆ GetBarterGroup< T >()

BarterGroup TaleWorlds.CampaignSystem.BarterSystem.BarterData.GetBarterGroup< T > ( )

◆ GetOfferedBarterables()

List< Barterable > TaleWorlds.CampaignSystem.BarterSystem.BarterData.GetOfferedBarterables ( )

Member Data Documentation

◆ OffererHero

readonly Hero TaleWorlds.CampaignSystem.BarterSystem.BarterData.OffererHero

◆ OtherHero

readonly Hero TaleWorlds.CampaignSystem.BarterSystem.BarterData.OtherHero

◆ OffererParty

readonly PartyBase TaleWorlds.CampaignSystem.BarterSystem.BarterData.OffererParty

◆ OtherParty

readonly PartyBase TaleWorlds.CampaignSystem.BarterSystem.BarterData.OtherParty

◆ ContextInitializer

readonly BarterManager.BarterContextInitializer TaleWorlds.CampaignSystem.BarterSystem.BarterData.ContextInitializer

◆ PersuasionCostReduction

readonly int TaleWorlds.CampaignSystem.BarterSystem.BarterData.PersuasionCostReduction

Property Documentation

◆ OffererMapFaction

IFaction TaleWorlds.CampaignSystem.BarterSystem.BarterData.OffererMapFaction
get

◆ OtherMapFaction

IFaction TaleWorlds.CampaignSystem.BarterSystem.BarterData.OtherMapFaction
get

◆ IsAiBarter

bool TaleWorlds.CampaignSystem.BarterSystem.BarterData.IsAiBarter
get