Class ShopPlacement
Placement which handles ShopLocation. Its main role is to handle adding its items to the shop stock as objects with the ModShopItemStats component.
Inheritance
ShopPlacement
Assembly: ItemChanger.dll
Syntax
public class ShopPlacement : AbstractPlacement, IShopPlacement, IMultiCostPlacement, IPrimaryLocationPlacement
Constructors
View Source
ShopPlacement(string)
Declaration
public ShopPlacement(string Name)
Parameters
| Type |
Name |
Description |
| string |
Name |
|
Fields
View Source
Location
Declaration
public ShopLocation Location
Field Value
Properties
View Source
MainContainerType
The container type that best describes the placement as a whole.
Declaration
public override string MainContainerType { get; }
Property Value
Overrides
View Source
defaultShopItems
Declaration
public DefaultShopItems defaultShopItems { get; set; }
Property Value
View Source
dungDiscount
Declaration
public bool dungDiscount { get; set; }
Property Value
View Source
requiredPlayerDataBool
Declaration
public string requiredPlayerDataBool { get; set; }
Property Value
Methods
View Source
AddItemWithCost(AbstractItem, Cost)
Declaration
public void AddItemWithCost(AbstractItem item, Cost cost)
Parameters
View Source
AddItemWithCost(AbstractItem, int)
Declaration
public void AddItemWithCost(AbstractItem item, int geoCost)
Parameters
View Source
ApplyItemDef(ShopItemStats, AbstractItem, Cost?)
Declaration
public void ApplyItemDef(ShopItemStats stats, AbstractItem item, Cost? cost)
Parameters
View Source
GetNewAltStock(GameObject[], GameObject[], GameObject)
Declaration
public GameObject[] GetNewAltStock(GameObject[] newStock, GameObject[] altStock, GameObject shopPrefab)
Parameters
Returns
View Source
GetNewStock(GameObject[], GameObject)
Declaration
public GameObject[] GetNewStock(GameObject[] oldStock, GameObject shopPrefab)
Parameters
Returns
View Source
Declaration
public override IEnumerable<Tag> GetPlacementAndLocationTags()
Returns
Overrides
View Source
KeepOldItem(ShopItemStats)
Declaration
public bool KeepOldItem(ShopItemStats stats)
Parameters
| Type |
Name |
Description |
| ShopItemStats |
stats |
|
Returns
View Source
OnLoad()
Called by Load(). Dispose hooks in OnUnload.
Declaration
protected override void OnLoad()
Overrides
View Source
OnPreview(string)
Declaration
[Obsolete]
public override void OnPreview(string previewText)
Parameters
| Type |
Name |
Description |
| string |
previewText |
|
Overrides
View Source
OnPreviewBatch(IEnumerable<(string, AbstractItem item)>)
Declaration
public void OnPreviewBatch(IEnumerable<(string, AbstractItem item)> ps)
Parameters
View Source
OnUnload()
Declaration
protected override void OnUnload()
Overrides
Implements
Extension Methods