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
System.Object
ShopPlacement
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: ItemChanger.dll
Syntax
public class ShopPlacement : AbstractPlacement, IShopPlacement, IMultiCostPlacement, IPrimaryLocationPlacement
Constructors
|
Improve this Doc
View Source
ShopPlacement(String)
Declaration
public ShopPlacement(string Name)
Parameters
Type |
Name |
Description |
System.String |
Name |
|
Fields
|
Improve this Doc
View Source
Location
Declaration
public ShopLocation Location
Field Value
Properties
|
Improve this Doc
View Source
defaultShopItems
Declaration
public DefaultShopItems defaultShopItems { get; set; }
Property Value
|
Improve this Doc
View Source
dungDiscount
Declaration
public bool dungDiscount { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
MainContainerType
Declaration
public override string MainContainerType { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
|
Improve this Doc
View Source
requiredPlayerDataBool
Declaration
public string requiredPlayerDataBool { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
AddItemWithCost(AbstractItem, Cost)
Declaration
public void AddItemWithCost(AbstractItem item, Cost cost)
Parameters
|
Improve this Doc
View Source
AddItemWithCost(AbstractItem, Int32)
Declaration
public void AddItemWithCost(AbstractItem item, int geoCost)
Parameters
Type |
Name |
Description |
AbstractItem |
item |
|
System.Int32 |
geoCost |
|
|
Improve this Doc
View Source
ApplyItemDef(ShopItemStats, AbstractItem, Cost)
Declaration
public void ApplyItemDef(ShopItemStats stats, AbstractItem item, Cost cost)
Parameters
|
Improve this Doc
View Source
GetNewAltStock(GameObject[], GameObject[], GameObject)
Declaration
public GameObject[] GetNewAltStock(GameObject[] newStock, GameObject[] altStock, GameObject shopPrefab)
Parameters
Type |
Name |
Description |
GameObject[] |
newStock |
|
GameObject[] |
altStock |
|
GameObject |
shopPrefab |
|
Returns
Type |
Description |
GameObject[] |
|
|
Improve this Doc
View Source
GetNewStock(GameObject[], GameObject)
Declaration
public GameObject[] GetNewStock(GameObject[] oldStock, GameObject shopPrefab)
Parameters
Type |
Name |
Description |
GameObject[] |
oldStock |
|
GameObject |
shopPrefab |
|
Returns
Type |
Description |
GameObject[] |
|
|
Improve this Doc
View Source
Declaration
public override IEnumerable<Tag> GetPlacementAndLocationTags()
Returns
Type |
Description |
IEnumerable<Tag> |
|
Overrides
|
Improve this Doc
View Source
KeepOldItem(ShopItemStats)
Declaration
public bool KeepOldItem(ShopItemStats stats)
Parameters
Type |
Name |
Description |
ShopItemStats |
stats |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
OnLoad()
Declaration
protected override void OnLoad()
Overrides
|
Improve this Doc
View Source
OnPreview(String)
Declaration
public override void OnPreview(string previewText)
Parameters
Type |
Name |
Description |
System.String |
previewText |
|
Overrides
|
Improve this Doc
View Source
OnPreviewBatch(IEnumerable<(String, AbstractItem item)>)
Declaration
public void OnPreviewBatch(IEnumerable<(string, AbstractItem item)> ps)
Parameters
Type |
Name |
Description |
IEnumerable<System.ValueTuple<System.String, AbstractItem>> |
ps |
|
|
Improve this Doc
View Source
OnUnload()
Declaration
protected override void OnUnload()
Overrides
Explicit Interface Implementations
|
Improve this Doc
View Source
IPrimaryLocationPlacement.Location
Declaration
AbstractLocation IPrimaryLocationPlacement.Location { get; }
Returns
Implements
Extension Methods