Class Town
- Namespace
- TaleWorlds.CampaignSystem.Settlements
- Assembly
- TaleWorlds.CampaignSystem.dll
public class Town : Fief
- Inheritance
-
Town
- Inherited Members
Constructors
Town()
public Town()
Fields
BesiegerCampPositions1
[CachedData]
public MatrixFrame[] BesiegerCampPositions1
Field Value
BesiegerCampPositions2
[CachedData]
public MatrixFrame[] BesiegerCampPositions2
Field Value
BoostBuildingProcess
[SaveableField(1008)]
public int BoostBuildingProcess
Field Value
Buildings
[SaveableField(1006)]
public MBList<Building> Buildings
Field Value
BuildingsInProgress
[SaveableField(1007)]
public Queue<Building> BuildingsInProgress
Field Value
GarrisonAutoRecruitmentIsEnabled
[SaveableField(1016)]
public bool GarrisonAutoRecruitmentIsEnabled
Field Value
InRebelliousState
[SaveableField(1011)]
public bool InRebelliousState
Field Value
Properties
AllCastles
public static MBReadOnlyList<Town> AllCastles { get; }
Property Value
AllFiefs
public static IEnumerable<Town> AllFiefs { get; }
Property Value
AllTowns
public static MBReadOnlyList<Town> AllTowns { get; }
Property Value
Construction
public float Construction { get; }
Property Value
ConstructionExplanation
public ExplainedNumber ConstructionExplanation { get; }
Property Value
Culture
public CultureObject Culture { get; }
Property Value
CurrentBuilding
public Building CurrentBuilding { get; }
Property Value
CurrentDefaultBuilding
public Building CurrentDefaultBuilding { get; }
Property Value
FoodChange
public float FoodChange { get; }
Property Value
FoodChangeExplanation
public ExplainedNumber FoodChangeExplanation { get; }
Property Value
FoodChangeWithoutMarketStocks
public float FoodChangeWithoutMarketStocks { get; }
Property Value
GarrisonChange
public int GarrisonChange { get; }
Property Value
GarrisonChangeAutoRecruitment
public int GarrisonChangeAutoRecruitment { get; }
Property Value
GarrisonChangeExplanation
public ExplainedNumber GarrisonChangeExplanation { get; }
Property Value
Governor
public Hero Governor { get; set; }
Property Value
HasTournament
public bool HasTournament { get; }
Property Value
IsCastle
public override bool IsCastle { get; }
Property Value
IsTown
public override bool IsTown { get; }
Property Value
IsUnderSiege
public bool IsUnderSiege { get; }
Property Value
LastCapturedBy
[SaveableProperty(1030)]
public Clan LastCapturedBy { get; set; }
Property Value
Loyalty
public float Loyalty { get; set; }
Property Value
LoyaltyChange
public float LoyaltyChange { get; }
Property Value
LoyaltyChangeExplanation
public ExplainedNumber LoyaltyChangeExplanation { get; }
Property Value
MapFaction
public IFaction MapFaction { get; }
Property Value
MarketData
public TownMarketData MarketData { get; }
Property Value
MilitiaChange
public float MilitiaChange { get; }
Property Value
MilitiaChangeExplanation
public ExplainedNumber MilitiaChangeExplanation { get; }
Property Value
OwnerClan
public Clan OwnerClan { get; set; }
Property Value
Prosperity
public float Prosperity { get; set; }
Property Value
ProsperityChange
public float ProsperityChange { get; }
Property Value
ProsperityChangeExplanation
public ExplainedNumber ProsperityChangeExplanation { get; }
Property Value
Security
public float Security { get; set; }
Property Value
SecurityChange
public float SecurityChange { get; }
Property Value
SecurityChangeExplanation
public ExplainedNumber SecurityChangeExplanation { get; }
Property Value
SoldItems
public IReadOnlyCollection<Town.SellLog> SoldItems { get; }
Property Value
TradeBoundVillages
public MBReadOnlyList<Village> TradeBoundVillages { get; }
Property Value
TradeTaxAccumulated
public int TradeTaxAccumulated { get; set; }
Property Value
Villages
[CachedData]
public MBReadOnlyList<Village> Villages { get; }
Property Value
Workshops
[SaveableProperty(1005)]
public Workshop[] Workshops { get; protected set; }
Property Value
- Workshop[]
Methods
AfterLoad()
protected override void AfterLoad()
AutoGeneratedInstanceCollectObjects(List<object>)
protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
Deserialize(MBObjectManager, XmlNode)
public override void Deserialize(MBObjectManager objectManager, XmlNode node)
Parameters
objectManager
MBObjectManagernode
XmlNode
FoodStocksUpperLimit()
public int FoodStocksUpperLimit()
Returns
GetDefenderParties(BattleTypes)
public IEnumerable<PartyBase> GetDefenderParties(MapEvent.BattleTypes battleType)
Parameters
battleType
MapEvent.BattleTypes
Returns
GetEffectOfBuildings(BuildingEffectEnum)
public float GetEffectOfBuildings(BuildingEffectEnum buildingEffect)
Parameters
buildingEffect
BuildingEffectEnum
Returns
GetItemCategoryPriceIndex(ItemCategory)
public float GetItemCategoryPriceIndex(ItemCategory itemCategory)
Parameters
itemCategory
ItemCategory
Returns
GetItemPrice(EquipmentElement, MobileParty, bool)
public override int GetItemPrice(EquipmentElement itemRosterElement, MobileParty tradingParty = null, bool isSelling = false)
Parameters
itemRosterElement
EquipmentElementtradingParty
MobilePartyisSelling
bool
Returns
GetItemPrice(ItemObject, MobileParty, bool)
public override int GetItemPrice(ItemObject item, MobileParty tradingParty = null, bool isSelling = false)
Parameters
item
ItemObjecttradingParty
MobilePartyisSelling
bool
Returns
GetNextDefenderParty(ref int, BattleTypes)
public PartyBase GetNextDefenderParty(ref int partyIndex, MapEvent.BattleTypes battleType)
Parameters
partyIndex
intbattleType
MapEvent.BattleTypes
Returns
GetProsperityLevel()
public override SettlementComponent.ProsperityLevel GetProsperityLevel()
Returns
GetWallLevel()
public int GetWallLevel()
Returns
InitializeWorkshops(int)
public void InitializeWorkshops(int count)
Parameters
count
int
OnInit()
public override void OnInit()
OnInventoryUpdated(ItemRosterElement, int)
protected override void OnInventoryUpdated(ItemRosterElement item, int count)
Parameters
item
ItemRosterElementcount
int
PreAfterLoad()
protected override void PreAfterLoad()
SetSoldItems(IEnumerable<SellLog>)
public void SetSoldItems(IEnumerable<Town.SellLog> logList)
Parameters
logList
IEnumerable<Town.SellLog>
ToString()
public override string ToString()
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).