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
MidHearthThreshold
public const int MidHearthThreshold = 600
Field Value
NumberOfDaysToFillVillageStocks
public const int NumberOfDaysToFillVillageStocks = 5
Field Value
VillageType
public VillageType VillageType
Field Value
VillagerPartyComponent
[CachedData]
public VillagerPartyComponent VillagerPartyComponent
Field Value
Properties
All
public static MBReadOnlyList<Village> All { get; }
Property Value
Bound
public Settlement Bound { get; }
Property Value
Hearth
[SaveableProperty(108)]
public float Hearth { get; set; }
Property Value
HearthChange
public float HearthChange { get; }
Property Value
HearthChangeExplanation
public ExplainedNumber HearthChangeExplanation { get; }
Property Value
IsDeserted
public bool IsDeserted { get; }
Property Value
LastDemandSatisfiedTime
[SaveableProperty(105)]
public float LastDemandSatisfiedTime { get; }
Property Value
MarketData
public VillageMarketData MarketData { get; }
Property Value
Militia
public float Militia { get; }
Property Value
MilitiaChange
public float MilitiaChange { get; }
Property Value
MilitiaChangeExplanation
public ExplainedNumber MilitiaChangeExplanation { get; }
Property Value
TradeBound
public Settlement TradeBound { get; }
Property Value
TradeTaxAccumulated
[SaveableProperty(110)]
public int TradeTaxAccumulated { get; set; }
Property Value
VillageState
public Village.VillageStates VillageState { get; set; }
Property Value
Methods
AutoGeneratedInstanceCollectObjects(List<object>)
protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
DailyTick()
public void DailyTick()
Deserialize(MBObjectManager, XmlNode)
public override void Deserialize(MBObjectManager objectManager, XmlNode node)
Parameters
objectManagerMBObjectManagernodeXmlNode
GetDefenderParties(BattleTypes)
public IEnumerable<PartyBase> GetDefenderParties(MapEvent.BattleTypes battleType)
Parameters
battleTypeMapEvent.BattleTypes
Returns
GetHearthLevel()
public int GetHearthLevel()
Returns
GetItemPrice(EquipmentElement, MobileParty, bool)
public override int GetItemPrice(EquipmentElement itemRosterElement, MobileParty tradingParty = null, bool isSelling = false)
Parameters
itemRosterElementEquipmentElementtradingPartyMobilePartyisSellingbool
Returns
GetItemPrice(ItemObject, MobileParty, bool)
public override int GetItemPrice(ItemObject item, MobileParty tradingParty = null, bool isSelling = false)
Parameters
itemItemObjecttradingPartyMobilePartyisSellingbool
Returns
GetNextDefenderParty(ref int, BattleTypes)
public PartyBase GetNextDefenderParty(ref int partyIndex, MapEvent.BattleTypes battleType)
Parameters
partyIndexintbattleTypeMapEvent.BattleTypes
Returns
GetProsperityLevel()
public override SettlementComponent.ProsperityLevel GetProsperityLevel()
Returns
GetWerehouseCapacity()
public int GetWerehouseCapacity()
Returns
IsProducing(ItemObject)
public bool IsProducing(ItemObject item)
Parameters
itemItemObject
Returns
OnInit()
public override void OnInit()
OnInventoryUpdated(ItemRosterElement, int)
protected override void OnInventoryUpdated(ItemRosterElement item, int count)
Parameters
itemItemRosterElementcountint
ToString()
public override string ToString()
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).