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

Public Member Functions

delegate bool BarterContextInitializer (Barterable barterable, BarterData args, object obj=null)
 
delegate void BarterCloseEventDelegate ()
 
delegate void BarterBeginEventDelegate (BarterData args)
 
 BarterManager ()
 
void BeginPlayerBarter (BarterData args)
 
void StartBarterOffer (Hero offerer, Hero other, PartyBase offererParty, PartyBase otherParty, Hero beneficiaryOfOtherHero=null, BarterContextInitializer InitContext=null, int persuasionCostReduction=0, bool isAIBarter=false, IEnumerable< Barterable > defaultBarterables=null)
 
void ExecuteAiBarter (IFaction faction1, IFaction faction2, Hero faction1Hero, Hero faction2Hero, Barterable barterable)
 
void ExecuteAiBarter (IFaction faction1, IFaction faction2, Hero faction1Hero, Hero faction2Hero, IEnumerable< Barterable > baseBarterables)
 
void ExecuteAIBarter (BarterData barterData, IFaction faction1, IFaction faction2, Hero faction1Hero, Hero faction2Hero)
 
void Close ()
 
bool IsOfferAcceptable (BarterData args, Hero hero, PartyBase party)
 
float GetOfferValueForFaction (BarterData barterData, IFaction faction)
 
float GetOfferValue (Hero selfHero, PartyBase selfParty, PartyBase offererParty, IEnumerable< Barterable > offeredBarters)
 
void ApplyAndFinalizePlayerBarter (Hero offererHero, Hero otherHero, BarterData barterData)
 
void CancelAndFinalizePlayerBarter (Hero offererHero, Hero otherHero, BarterData barterData)
 
bool CanPlayerBarterWithHero (Hero hero)
 
bool InitializeMarriageBarterContext (Barterable barterable, BarterData args, object obj)
 
bool InitializeJoinFactionBarterContext (Barterable barterable, BarterData args, object obj)
 
bool InitializeMakePeaceBarterContext (Barterable barterable, BarterData args, object obj)
 
bool InitializeSafePassageBarterContext (Barterable barterable, BarterData args, object obj)
 

Public Attributes

BarterCloseEventDelegate Closed
 
BarterBeginEventDelegate BarterBegin
 

Properties

static BarterManager Instance [get]
 
bool LastBarterIsAccepted [get]
 

Constructor & Destructor Documentation

◆ BarterManager()

TaleWorlds.CampaignSystem.BarterSystem.BarterManager.BarterManager ( )

Member Function Documentation

◆ BarterContextInitializer()

delegate bool TaleWorlds.CampaignSystem.BarterSystem.BarterManager.BarterContextInitializer ( Barterable barterable,
BarterData args,
object obj = null )

◆ BarterCloseEventDelegate()

delegate void TaleWorlds.CampaignSystem.BarterSystem.BarterManager.BarterCloseEventDelegate ( )

◆ BarterBeginEventDelegate()

delegate void TaleWorlds.CampaignSystem.BarterSystem.BarterManager.BarterBeginEventDelegate ( BarterData args)

◆ BeginPlayerBarter()

void TaleWorlds.CampaignSystem.BarterSystem.BarterManager.BeginPlayerBarter ( BarterData args)

◆ StartBarterOffer()

void TaleWorlds.CampaignSystem.BarterSystem.BarterManager.StartBarterOffer ( Hero offerer,
Hero other,
PartyBase offererParty,
PartyBase otherParty,
Hero beneficiaryOfOtherHero = null,
BarterContextInitializer InitContext = null,
int persuasionCostReduction = 0,
bool isAIBarter = false,
IEnumerable< Barterable > defaultBarterables = null )

◆ ExecuteAiBarter() [1/2]

void TaleWorlds.CampaignSystem.BarterSystem.BarterManager.ExecuteAiBarter ( IFaction faction1,
IFaction faction2,
Hero faction1Hero,
Hero faction2Hero,
Barterable barterable )

◆ ExecuteAiBarter() [2/2]

void TaleWorlds.CampaignSystem.BarterSystem.BarterManager.ExecuteAiBarter ( IFaction faction1,
IFaction faction2,
Hero faction1Hero,
Hero faction2Hero,
IEnumerable< Barterable > baseBarterables )

◆ ExecuteAIBarter()

void TaleWorlds.CampaignSystem.BarterSystem.BarterManager.ExecuteAIBarter ( BarterData barterData,
IFaction faction1,
IFaction faction2,
Hero faction1Hero,
Hero faction2Hero )

◆ Close()

void TaleWorlds.CampaignSystem.BarterSystem.BarterManager.Close ( )

◆ IsOfferAcceptable()

bool TaleWorlds.CampaignSystem.BarterSystem.BarterManager.IsOfferAcceptable ( BarterData args,
Hero hero,
PartyBase party )

◆ GetOfferValueForFaction()

float TaleWorlds.CampaignSystem.BarterSystem.BarterManager.GetOfferValueForFaction ( BarterData barterData,
IFaction faction )

◆ GetOfferValue()

float TaleWorlds.CampaignSystem.BarterSystem.BarterManager.GetOfferValue ( Hero selfHero,
PartyBase selfParty,
PartyBase offererParty,
IEnumerable< Barterable > offeredBarters )

◆ ApplyAndFinalizePlayerBarter()

void TaleWorlds.CampaignSystem.BarterSystem.BarterManager.ApplyAndFinalizePlayerBarter ( Hero offererHero,
Hero otherHero,
BarterData barterData )

◆ CancelAndFinalizePlayerBarter()

void TaleWorlds.CampaignSystem.BarterSystem.BarterManager.CancelAndFinalizePlayerBarter ( Hero offererHero,
Hero otherHero,
BarterData barterData )

◆ CanPlayerBarterWithHero()

bool TaleWorlds.CampaignSystem.BarterSystem.BarterManager.CanPlayerBarterWithHero ( Hero hero)

◆ InitializeMarriageBarterContext()

bool TaleWorlds.CampaignSystem.BarterSystem.BarterManager.InitializeMarriageBarterContext ( Barterable barterable,
BarterData args,
object obj )

◆ InitializeJoinFactionBarterContext()

bool TaleWorlds.CampaignSystem.BarterSystem.BarterManager.InitializeJoinFactionBarterContext ( Barterable barterable,
BarterData args,
object obj )

◆ InitializeMakePeaceBarterContext()

bool TaleWorlds.CampaignSystem.BarterSystem.BarterManager.InitializeMakePeaceBarterContext ( Barterable barterable,
BarterData args,
object obj )

◆ InitializeSafePassageBarterContext()

bool TaleWorlds.CampaignSystem.BarterSystem.BarterManager.InitializeSafePassageBarterContext ( Barterable barterable,
BarterData args,
object obj )

Member Data Documentation

◆ Closed

BarterCloseEventDelegate TaleWorlds.CampaignSystem.BarterSystem.BarterManager.Closed

◆ BarterBegin

BarterBeginEventDelegate TaleWorlds.CampaignSystem.BarterSystem.BarterManager.BarterBegin

Property Documentation

◆ Instance

BarterManager TaleWorlds.CampaignSystem.BarterSystem.BarterManager.Instance
staticget

◆ LastBarterIsAccepted

bool TaleWorlds.CampaignSystem.BarterSystem.BarterManager.LastBarterIsAccepted
get