Table of Contents

Class Kingdom

Namespace
TaleWorlds.CampaignSystem
Assembly
TaleWorlds.CampaignSystem.dll
public sealed class Kingdom : MBObjectBase, IFaction
Inheritance
Kingdom
Implements
Inherited Members

Constructors

Kingdom()

public Kingdom()

Fields

PoliticalStagnation

[SaveableField(23)]
public int PoliticalStagnation

Field Value

int

Properties

ActivePolicies

public IList<PolicyObject> ActivePolicies { get; }

Property Value

IList<PolicyObject>

Aggressiveness

public float Aggressiveness { get; }

Property Value

float

All

public static MBReadOnlyList<Kingdom> All { get; }

Property Value

MBReadOnlyList<Kingdom>

AllParties

public IEnumerable<MobileParty> AllParties { get; }

Property Value

IEnumerable<MobileParty>

AlternativeColor

[SaveableProperty(11)]
public uint AlternativeColor { get; }

Property Value

uint

AlternativeColor2

[SaveableProperty(12)]
public uint AlternativeColor2 { get; }

Property Value

uint

Armies

public MBReadOnlyList<Army> Armies { get; }

Property Value

MBReadOnlyList<Army>

Banner

[SaveableProperty(16)]
public Banner Banner { get; }

Property Value

Banner

BasicTroop

public CharacterObject BasicTroop { get; }

Property Value

CharacterObject

Clans

public MBReadOnlyList<Clan> Clans { get; }

Property Value

MBReadOnlyList<Clan>

Color

[SaveableProperty(9)]
public uint Color { get; }

Property Value

uint

Color2

[SaveableProperty(10)]
public uint Color2 { get; }

Property Value

uint

Culture

[SaveableProperty(6)]
public CultureObject Culture { get; }

Property Value

CultureObject

DailyCrimeRatingChange

public float DailyCrimeRatingChange { get; }

Property Value

float

DailyCrimeRatingChangeExplained

public ExplainedNumber DailyCrimeRatingChangeExplained { get; }

Property Value

ExplainedNumber

DistanceToClosestNonAllyFortification

public float DistanceToClosestNonAllyFortification { get; }

Property Value

float
public string EncyclopediaLink { get; }

Property Value

string

EncyclopediaLinkWithName

public TextObject EncyclopediaLinkWithName { get; }

Property Value

TextObject

EncyclopediaRulerTitle

[SaveableProperty(5)]
public TextObject EncyclopediaRulerTitle { get; }

Property Value

TextObject

EncyclopediaText

[SaveableProperty(3)]
public TextObject EncyclopediaText { get; }

Property Value

TextObject

EncyclopediaTitle

[SaveableProperty(4)]
public TextObject EncyclopediaTitle { get; }

Property Value

TextObject

FactionMidSettlement

public Settlement FactionMidSettlement { get; }

Property Value

Settlement

Fiefs

public MBReadOnlyList<Town> Fiefs { get; }

Property Value

MBReadOnlyList<Town>

Heroes

public MBReadOnlyList<Hero> Heroes { get; }

Property Value

MBReadOnlyList<Hero>

InformalName

[SaveableProperty(2)]
public TextObject InformalName { get; }

Property Value

TextObject

InitialHomeLand

[SaveableProperty(17)]
public Settlement InitialHomeLand { get; }

Property Value

Settlement

InitialPosition

public Vec2 InitialPosition { get; }

Property Value

Vec2

IsBanditFaction

public bool IsBanditFaction { get; }

Property Value

bool

IsClan

public bool IsClan { get; }

Property Value

bool

IsEliminated

public bool IsEliminated { get; }

Property Value

bool

IsMapFaction

public bool IsMapFaction { get; }

Property Value

bool

IsMinorFaction

public bool IsMinorFaction { get; }

Property Value

bool

IsOutlaw

public bool IsOutlaw { get; }

Property Value

bool

IsRebelClan

public bool IsRebelClan { get; }

Property Value

bool

KingdomBudgetWallet

public int KingdomBudgetWallet { get; set; }

Property Value

int

LabelColor

[SaveableProperty(8)]
public uint LabelColor { get; }

Property Value

uint

LastArmyCreationDay

[SaveableProperty(19)]
public int LastArmyCreationDay { get; }

Property Value

int

LastKingdomDecisionConclusionDate

[SaveableProperty(28)]
public CampaignTime LastKingdomDecisionConclusionDate { get; }

Property Value

CampaignTime

LastMercenaryOfferTime

[SaveableProperty(41)]
public CampaignTime LastMercenaryOfferTime { get; set; }

Property Value

CampaignTime

Leader

public Hero Leader { get; }

Property Value

Hero

Lords

public MBReadOnlyList<Hero> Lords { get; }

Property Value

MBReadOnlyList<Hero>

MainHeroCrimeRating

[SaveableProperty(15)]
public float MainHeroCrimeRating { get; set; }

Property Value

float

MapFaction

public IFaction MapFaction { get; }

Property Value

IFaction

MercenaryWallet

[SaveableProperty(70)]
public int MercenaryWallet { get; }

Property Value

int

Name

[SaveableProperty(1)]
public TextObject Name { get; }

Property Value

TextObject

NotAttackableByPlayerUntilTime

[SaveableProperty(50)]
public CampaignTime NotAttackableByPlayerUntilTime { get; set; }

Property Value

CampaignTime

PrimaryBannerColor

[SaveableProperty(13)]
public uint PrimaryBannerColor { get; }

Property Value

uint

RulingClan

public Clan RulingClan { get; set; }

Property Value

Clan

SecondaryBannerColor

[SaveableProperty(14)]
public uint SecondaryBannerColor { get; }

Property Value

uint

Settlements

public MBReadOnlyList<Settlement> Settlements { get; }

Property Value

MBReadOnlyList<Settlement>

Stances

public IEnumerable<StanceLink> Stances { get; }

Property Value

IEnumerable<StanceLink>

TotalStrength

public float TotalStrength { get; }

Property Value

float

TributeWallet

public int TributeWallet { get; set; }

Property Value

int

UnresolvedDecisions

public MBReadOnlyList<KingdomDecision> UnresolvedDecisions { get; }

Property Value

MBReadOnlyList<KingdomDecision>

Villages

public MBReadOnlyList<Village> Villages { get; }

Property Value

MBReadOnlyList<Village>

WarPartyComponents

public MBReadOnlyList<WarPartyComponent> WarPartyComponents { get; }

Property Value

MBReadOnlyList<WarPartyComponent>

Methods

AddDecision(KingdomDecision, bool)

public void AddDecision(KingdomDecision kingdomDecision, bool ignoreInfluenceCost = false)

Parameters

kingdomDecision KingdomDecision
ignoreInfluenceCost bool

AddPolicy(PolicyObject)

public void AddPolicy(PolicyObject policy)

Parameters

policy PolicyObject

AfterLoad()

protected override void AfterLoad()

AutoGeneratedInstanceCollectObjects(List<object>)

protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

ChangeKingdomName(TextObject, TextObject)

public void ChangeKingdomName(TextObject name, TextObject informalName)

Parameters

name TextObject
informalName TextObject

CreateArmy(Hero, Settlement, ArmyTypes)

public void CreateArmy(Hero armyLeader, Settlement targetSettlement, Army.ArmyTypes selectedArmyType)

Parameters

armyLeader Hero
targetSettlement Settlement
selectedArmyType Army.ArmyTypes

CreateKingdom(string)

public static Kingdom CreateKingdom(string stringID)

Parameters

stringID string

Returns

Kingdom

Deserialize(MBObjectManager, XmlNode)

public override void Deserialize(MBObjectManager objectManager, XmlNode node)

Parameters

objectManager MBObjectManager
node XmlNode

GetStanceWith(IFaction)

public StanceLink GetStanceWith(IFaction other)

Parameters

other IFaction

Returns

StanceLink

HasPolicy(PolicyObject)

public bool HasPolicy(PolicyObject policy)

Parameters

policy PolicyObject

Returns

bool

InitializeKingdom(TextObject, TextObject, CultureObject, Banner, uint, uint, Settlement, TextObject, TextObject, TextObject)

public void InitializeKingdom(TextObject name, TextObject informalName, CultureObject culture, Banner banner, uint kingdomColor1, uint kingdomColor2, Settlement initialHomeland, TextObject encyclopediaText, TextObject encyclopediaTitle, TextObject encyclopediaRulerTitle)

Parameters

name TextObject
informalName TextObject
culture CultureObject
banner Banner
kingdomColor1 uint
kingdomColor2 uint
initialHomeland Settlement
encyclopediaText TextObject
encyclopediaTitle TextObject
encyclopediaRulerTitle TextObject

IsAtWarWith(IFaction)

public bool IsAtWarWith(IFaction other)

Parameters

other IFaction

Returns

bool

OnFiefRemoved(Town)

public void OnFiefRemoved(Town fief)

Parameters

fief Town

OnFortificationAdded(Town)

public void OnFortificationAdded(Town fief)

Parameters

fief Town

OnHeroAdded(Hero)

public void OnHeroAdded(Hero hero)

Parameters

hero Hero

OnHeroRemoved(Hero)

public void OnHeroRemoved(Hero hero)

Parameters

hero Hero

OnKingdomDecisionConcluded()

public void OnKingdomDecisionConcluded()

OnNewGameCreated(CampaignGameStarter)

public void OnNewGameCreated(CampaignGameStarter starter)

Parameters

starter CampaignGameStarter

OnWarPartyAdded(WarPartyComponent)

public void OnWarPartyAdded(WarPartyComponent warPartyComponent)

Parameters

warPartyComponent WarPartyComponent

OnWarPartyRemoved(WarPartyComponent)

public void OnWarPartyRemoved(WarPartyComponent warPartyComponent)

Parameters

warPartyComponent WarPartyComponent

ReactivateKingdom()

public void ReactivateKingdom()

RemoveDecision(KingdomDecision)

public void RemoveDecision(KingdomDecision kingdomDecision)

Parameters

kingdomDecision KingdomDecision

RemovePolicy(PolicyObject)

public void RemovePolicy(PolicyObject policy)

Parameters

policy PolicyObject

ToString()

public override string ToString()

Returns

string

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).