Table of Contents

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 ItemCategory
demandAmount float

AddNumberInStore(ItemCategory, int, int)

public void AddNumberInStore(ItemCategory itemCategory, int number, int value)

Parameters

itemCategory ItemCategory
number int
value int

AddSupply(ItemCategory, float)

public void AddSupply(ItemCategory itemCategory, float supplyAmount)

Parameters

itemCategory ItemCategory
supplyAmount float

AutoGeneratedInstanceCollectObjects(List<object>)

protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

GetCategoryData(ItemCategory)

public ItemData GetCategoryData(ItemCategory itemCategory)

Parameters

itemCategory ItemCategory

Returns

ItemData

GetDemand(ItemCategory)

public float GetDemand(ItemCategory itemCategory)

Parameters

itemCategory ItemCategory

Returns

float

GetItemCountOfCategory(ItemCategory)

public int GetItemCountOfCategory(ItemCategory itemCategory)

Parameters

itemCategory ItemCategory

Returns

int

GetPrice(EquipmentElement, MobileParty, bool, PartyBase)

public int GetPrice(EquipmentElement itemRosterElement, MobileParty tradingParty = null, bool isSelling = false, PartyBase merchantParty = null)

Parameters

itemRosterElement EquipmentElement
tradingParty MobileParty
isSelling bool
merchantParty PartyBase

Returns

int

GetPrice(ItemObject, MobileParty, bool, PartyBase)

public int GetPrice(ItemObject item, MobileParty tradingParty = null, bool isSelling = false, PartyBase merchantParty = null)

Parameters

item ItemObject
tradingParty MobileParty
isSelling bool
merchantParty PartyBase

Returns

int

GetPriceFactor(ItemCategory)

public float GetPriceFactor(ItemCategory itemCategory)

Parameters

itemCategory ItemCategory

Returns

float

GetSupply(ItemCategory)

public float GetSupply(ItemCategory itemCategory)

Parameters

itemCategory ItemCategory

Returns

float

OnTownInventoryUpdated(ItemRosterElement, int)

public void OnTownInventoryUpdated(ItemRosterElement item, int count)

Parameters

item ItemRosterElement
count int

SetDemand(ItemCategory, float)

public void SetDemand(ItemCategory itemCategory, float demand)

Parameters

itemCategory ItemCategory
demand float

SetSupplyDemand(ItemCategory, float, float)

public void SetSupplyDemand(ItemCategory itemCategory, float supply, float demand)

Parameters

itemCategory ItemCategory
supply float
demand float

UpdateStores()

public void UpdateStores()

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