Class TownMarketData
- Namespace
- TaleWorlds.CampaignSystem.Settlements
- Assembly
- TaleWorlds.CampaignSystem.dll
public class TownMarketData : IMarketData
- Inheritance
-
TownMarketData
- Implements
- Inherited Members
Constructors
TownMarketData(Town)
public TownMarketData(Town town)
Parameters
townTown
Methods
AddDemand(ItemCategory, float)
public void AddDemand(ItemCategory itemCategory, float demandAmount)
Parameters
itemCategoryItemCategorydemandAmountfloat
AddNumberInStore(ItemCategory, int, int)
public void AddNumberInStore(ItemCategory itemCategory, int number, int value)
Parameters
itemCategoryItemCategorynumberintvalueint
AddSupply(ItemCategory, float)
public void AddSupply(ItemCategory itemCategory, float supplyAmount)
Parameters
itemCategoryItemCategorysupplyAmountfloat
AutoGeneratedInstanceCollectObjects(List<object>)
protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
GetCategoryData(ItemCategory)
public ItemData GetCategoryData(ItemCategory itemCategory)
Parameters
itemCategoryItemCategory
Returns
GetDemand(ItemCategory)
public float GetDemand(ItemCategory itemCategory)
Parameters
itemCategoryItemCategory
Returns
GetItemCountOfCategory(ItemCategory)
public int GetItemCountOfCategory(ItemCategory itemCategory)
Parameters
itemCategoryItemCategory
Returns
GetPrice(EquipmentElement, MobileParty, bool, PartyBase)
public int GetPrice(EquipmentElement itemRosterElement, MobileParty tradingParty = null, bool isSelling = false, PartyBase merchantParty = null)
Parameters
itemRosterElementEquipmentElementtradingPartyMobilePartyisSellingboolmerchantPartyPartyBase
Returns
GetPrice(ItemObject, MobileParty, bool, PartyBase)
public int GetPrice(ItemObject item, MobileParty tradingParty = null, bool isSelling = false, PartyBase merchantParty = null)
Parameters
itemItemObjecttradingPartyMobilePartyisSellingboolmerchantPartyPartyBase
Returns
GetPriceFactor(ItemCategory)
public float GetPriceFactor(ItemCategory itemCategory)
Parameters
itemCategoryItemCategory
Returns
GetSupply(ItemCategory)
public float GetSupply(ItemCategory itemCategory)
Parameters
itemCategoryItemCategory
Returns
OnTownInventoryUpdated(ItemRosterElement, int)
public void OnTownInventoryUpdated(ItemRosterElement item, int count)
Parameters
itemItemRosterElementcountint
SetDemand(ItemCategory, float)
public void SetDemand(ItemCategory itemCategory, float demand)
Parameters
itemCategoryItemCategorydemandfloat
SetSupplyDemand(ItemCategory, float, float)
public void SetSupplyDemand(ItemCategory itemCategory, float supply, float demand)
Parameters
itemCategoryItemCategorysupplyfloatdemandfloat
UpdateStores()
public void UpdateStores()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).