Table of Contents

Class Village

Namespace
TaleWorlds.CampaignSystem.Settlements
Assembly
TaleWorlds.CampaignSystem.dll
public class Village : SettlementComponent
Inheritance
Village
Inherited Members

Constructors

Village()

public Village()

Fields

LowHearthThreshold

public const int LowHearthThreshold = 200

Field Value

int

MidHearthThreshold

public const int MidHearthThreshold = 600

Field Value

int

NumberOfDaysToFillVillageStocks

public const int NumberOfDaysToFillVillageStocks = 5

Field Value

int

VillageType

public VillageType VillageType

Field Value

VillageType

VillagerPartyComponent

[CachedData]
public VillagerPartyComponent VillagerPartyComponent

Field Value

VillagerPartyComponent

Properties

All

public static MBReadOnlyList<Village> All { get; }

Property Value

MBReadOnlyList<Village>

Bound

public Settlement Bound { get; }

Property Value

Settlement

Hearth

[SaveableProperty(108)]
public float Hearth { get; set; }

Property Value

float

HearthChange

public float HearthChange { get; }

Property Value

float

HearthChangeExplanation

public ExplainedNumber HearthChangeExplanation { get; }

Property Value

ExplainedNumber

IsDeserted

public bool IsDeserted { get; }

Property Value

bool

LastDemandSatisfiedTime

[SaveableProperty(105)]
public float LastDemandSatisfiedTime { get; }

Property Value

float

MarketData

public VillageMarketData MarketData { get; }

Property Value

VillageMarketData

Militia

public float Militia { get; }

Property Value

float

MilitiaChange

public float MilitiaChange { get; }

Property Value

float

MilitiaChangeExplanation

public ExplainedNumber MilitiaChangeExplanation { get; }

Property Value

ExplainedNumber

TradeBound

public Settlement TradeBound { get; }

Property Value

Settlement

TradeTaxAccumulated

[SaveableProperty(110)]
public int TradeTaxAccumulated { get; set; }

Property Value

int

VillageState

public Village.VillageStates VillageState { get; set; }

Property Value

Village.VillageStates

Methods

AutoGeneratedInstanceCollectObjects(List<object>)

protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

DailyTick()

public void DailyTick()

Deserialize(MBObjectManager, XmlNode)

public override void Deserialize(MBObjectManager objectManager, XmlNode node)

Parameters

objectManager MBObjectManager
node XmlNode

GetDefenderParties(BattleTypes)

public IEnumerable<PartyBase> GetDefenderParties(MapEvent.BattleTypes battleType)

Parameters

battleType MapEvent.BattleTypes

Returns

IEnumerable<PartyBase>

GetHearthLevel()

public int GetHearthLevel()

Returns

int

GetItemPrice(EquipmentElement, MobileParty, bool)

public override int GetItemPrice(EquipmentElement itemRosterElement, MobileParty tradingParty = null, bool isSelling = false)

Parameters

itemRosterElement EquipmentElement
tradingParty MobileParty
isSelling bool

Returns

int

GetItemPrice(ItemObject, MobileParty, bool)

public override int GetItemPrice(ItemObject item, MobileParty tradingParty = null, bool isSelling = false)

Parameters

item ItemObject
tradingParty MobileParty
isSelling bool

Returns

int

GetNextDefenderParty(ref int, BattleTypes)

public PartyBase GetNextDefenderParty(ref int partyIndex, MapEvent.BattleTypes battleType)

Parameters

partyIndex int
battleType MapEvent.BattleTypes

Returns

PartyBase

GetProsperityLevel()

public override SettlementComponent.ProsperityLevel GetProsperityLevel()

Returns

SettlementComponent.ProsperityLevel

GetWerehouseCapacity()

public int GetWerehouseCapacity()

Returns

int

IsProducing(ItemObject)

public bool IsProducing(ItemObject item)

Parameters

item ItemObject

Returns

bool

OnInit()

public override void OnInit()

OnInventoryUpdated(ItemRosterElement, int)

protected override void OnInventoryUpdated(ItemRosterElement item, int count)

Parameters

item ItemRosterElement
count int

ToString()

public override string ToString()

Returns

string

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