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

Public Member Functions

void OnNewGameCreated ()
 
 KingdomManager ()
 
void CreateKingdom (TextObject kingdomName, TextObject informalName, CultureObject culture, Clan founderClan, MBReadOnlyList< PolicyObject > initialPolicies=null, TextObject encyclopediaText=null, TextObject encyclopediaTitle=null, TextObject encyclopediaRulerTitle=null)
 
void AbdicateTheThrone (Kingdom kingdom)
 Demotes ruler clan to vassal or if no other clan exists removes clan from kingdom and destroys the kingdom.
 
void RaidCompleted (BattleSideEnum winnerSide, RaidEventComponent raidEvent)
 
void SiegeCompleted (Settlement settlement, MobileParty capturerParty, bool isWin, BattleTypes battleType)
 
void RelinquishSettlementOwnership (Settlement settlement)
 Starts a claimant decision for the settlement excluding current owner(relinquishing clan) as an option.
 
void GiftSettlementOwnership (Settlement settlement, Clan receiverClan)
 Transfers ownership of settlement to receiverClan and applies a relationship bonus. Intended to be called for settlements owned by the faction leader.
 
IEnumerable< ClanGetEligibleClansForSettlementOwnershipGift (Settlement settlement)
 
int GetMercenaryWageAmount (Hero hero)
 

Public Attributes

float PlayerMercenaryServiceNextRenewDay = -1.0f
 
Hero PrisonerLordRansomOffered
 
MBCampaignEvent QuarterHourlyTickEvent
 

Constructor & Destructor Documentation

◆ KingdomManager()

TaleWorlds.CampaignSystem.KingdomManager.KingdomManager ( )

Member Function Documentation

◆ OnNewGameCreated()

void TaleWorlds.CampaignSystem.KingdomManager.OnNewGameCreated ( )

◆ CreateKingdom()

void TaleWorlds.CampaignSystem.KingdomManager.CreateKingdom ( TextObject  kingdomName,
TextObject  informalName,
CultureObject  culture,
Clan  founderClan,
MBReadOnlyList< PolicyObject initialPolicies = null,
TextObject  encyclopediaText = null,
TextObject  encyclopediaTitle = null,
TextObject  encyclopediaRulerTitle = null 
)

◆ AbdicateTheThrone()

void TaleWorlds.CampaignSystem.KingdomManager.AbdicateTheThrone ( Kingdom  kingdom)

◆ RaidCompleted()

void TaleWorlds.CampaignSystem.KingdomManager.RaidCompleted ( BattleSideEnum  winnerSide,
RaidEventComponent  raidEvent 
)

◆ SiegeCompleted()

void TaleWorlds.CampaignSystem.KingdomManager.SiegeCompleted ( Settlement  settlement,
MobileParty  capturerParty,
bool  isWin,
BattleTypes  battleType 
)

◆ RelinquishSettlementOwnership()

void TaleWorlds.CampaignSystem.KingdomManager.RelinquishSettlementOwnership ( Settlement  settlement)

◆ GiftSettlementOwnership()

void TaleWorlds.CampaignSystem.KingdomManager.GiftSettlementOwnership ( Settlement  settlement,
Clan  receiverClan 
)

◆ GetEligibleClansForSettlementOwnershipGift()

IEnumerable< Clan > TaleWorlds.CampaignSystem.KingdomManager.GetEligibleClansForSettlementOwnershipGift ( Settlement  settlement)

◆ GetMercenaryWageAmount()

int TaleWorlds.CampaignSystem.KingdomManager.GetMercenaryWageAmount ( Hero  hero)

Member Data Documentation

◆ PlayerMercenaryServiceNextRenewDay

float TaleWorlds.CampaignSystem.KingdomManager.PlayerMercenaryServiceNextRenewDay = -1.0f

◆ PrisonerLordRansomOffered

Hero TaleWorlds.CampaignSystem.KingdomManager.PrisonerLordRansomOffered

◆ QuarterHourlyTickEvent

MBCampaignEvent TaleWorlds.CampaignSystem.KingdomManager.QuarterHourlyTickEvent