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
town
Town
Methods
AddDemand(ItemCategory, float)
public void AddDemand(ItemCategory itemCategory, float demandAmount)
Parameters
itemCategory
ItemCategorydemandAmount
float
AddNumberInStore(ItemCategory, int, int)
public void AddNumberInStore(ItemCategory itemCategory, int number, int value)
Parameters
itemCategory
ItemCategorynumber
intvalue
int
AddSupply(ItemCategory, float)
public void AddSupply(ItemCategory itemCategory, float supplyAmount)
Parameters
itemCategory
ItemCategorysupplyAmount
float
AutoGeneratedInstanceCollectObjects(List<object>)
protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
GetCategoryData(ItemCategory)
public ItemData GetCategoryData(ItemCategory itemCategory)
Parameters
itemCategory
ItemCategory
Returns
GetDemand(ItemCategory)
public float GetDemand(ItemCategory itemCategory)
Parameters
itemCategory
ItemCategory
Returns
GetItemCountOfCategory(ItemCategory)
public int GetItemCountOfCategory(ItemCategory itemCategory)
Parameters
itemCategory
ItemCategory
Returns
GetPrice(EquipmentElement, MobileParty, bool, PartyBase)
public int GetPrice(EquipmentElement itemRosterElement, MobileParty tradingParty = null, bool isSelling = false, PartyBase merchantParty = null)
Parameters
itemRosterElement
EquipmentElementtradingParty
MobilePartyisSelling
boolmerchantParty
PartyBase
Returns
GetPrice(ItemObject, MobileParty, bool, PartyBase)
public int GetPrice(ItemObject item, MobileParty tradingParty = null, bool isSelling = false, PartyBase merchantParty = null)
Parameters
item
ItemObjecttradingParty
MobilePartyisSelling
boolmerchantParty
PartyBase
Returns
GetPriceFactor(ItemCategory)
public float GetPriceFactor(ItemCategory itemCategory)
Parameters
itemCategory
ItemCategory
Returns
GetSupply(ItemCategory)
public float GetSupply(ItemCategory itemCategory)
Parameters
itemCategory
ItemCategory
Returns
OnTownInventoryUpdated(ItemRosterElement, int)
public void OnTownInventoryUpdated(ItemRosterElement item, int count)
Parameters
item
ItemRosterElementcount
int
SetDemand(ItemCategory, float)
public void SetDemand(ItemCategory itemCategory, float demand)
Parameters
itemCategory
ItemCategorydemand
float
SetSupplyDemand(ItemCategory, float, float)
public void SetSupplyDemand(ItemCategory itemCategory, float supply, float demand)
Parameters
itemCategory
ItemCategorysupply
floatdemand
float
UpdateStores()
public void UpdateStores()
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).