Show / Hide Table of Contents

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
TaggableObject
AbstractPlacement
ShopPlacement
Implements
IShopPlacement
IMultiCostPlacement
IPrimaryLocationPlacement
Inherited Members
AbstractPlacement.Name
AbstractPlacement.Items
AbstractPlacement.Visited
AbstractPlacement.GiveAll(GiveInfo, Nullable<Action>)
AbstractPlacement.OnObtainedItem(AbstractItem)
AbstractPlacement.GetUIName()
AbstractPlacement.GetUIName(Int32)
AbstractPlacement.AllObtained()
AbstractPlacement.AddVisitFlag(VisitState)
AbstractPlacement.CheckVisitedAny(VisitState)
AbstractPlacement.CheckVisitedAll(VisitState)
AbstractPlacement.Load()
AbstractPlacement.Unload()
AbstractPlacement.OnVisitStateChangedGlobal
AbstractPlacement.OnVisitStateChanged
AbstractPlacement.Add(AbstractItem)
AbstractPlacement.Add(IEnumerable<AbstractItem>)
AbstractPlacement.Add(AbstractItem[])
TaggableObject.tags
TaggableObject.LoadTags()
TaggableObject.UnloadTags()
TaggableObject.AddTag<T>()
TaggableObject.AddTag(Tag)
TaggableObject.AddTags(IEnumerable<Tag>)
TaggableObject.GetTag<T>()
TaggableObject.GetTag<T>(T)
TaggableObject.GetTags<T>()
TaggableObject.GetOrAddTag<T>()
TaggableObject.HasTag<T>()
TaggableObject.RemoveTags<T>()
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()
Namespace: ItemChanger.Placements
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
Type Description
ShopLocation

Properties

| Improve this Doc View Source

defaultShopItems

Declaration
public DefaultShopItems defaultShopItems { get; set; }
Property Value
Type Description
DefaultShopItems
| 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
AbstractPlacement.MainContainerType
| 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
Type Name Description
AbstractItem item
Cost cost
| 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
Type Name Description
ShopItemStats stats
AbstractItem item
Cost cost
| 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

GetPlacementAndLocationTags()

Declaration
public override IEnumerable<Tag> GetPlacementAndLocationTags()
Returns
Type Description
IEnumerable<Tag>
Overrides
AbstractPlacement.GetPlacementAndLocationTags()
| 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
AbstractPlacement.OnLoad()
| Improve this Doc View Source

OnPreview(String)

Declaration
public override void OnPreview(string previewText)
Parameters
Type Name Description
System.String previewText
Overrides
AbstractPlacement.OnPreview(String)
| 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
AbstractPlacement.OnUnload()

Explicit Interface Implementations

| Improve this Doc View Source

IPrimaryLocationPlacement.Location

Declaration
AbstractLocation IPrimaryLocationPlacement.Location { get; }
Returns
Type Description
AbstractLocation

Implements

IShopPlacement
IMultiCostPlacement
IPrimaryLocationPlacement

Extension Methods

Extensions.Yield<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX