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

Properties

View Source

MainContainerType

The container type that best describes the placement as a whole.

Declaration
public override string MainContainerType { get; }
Property Value
Type Description
string
Overrides
AbstractPlacement.MainContainerType
View Source

defaultShopItems

Declaration
public DefaultShopItems defaultShopItems { get; set; }
Property Value
Type Description
DefaultShopItems
View Source

dungDiscount

Declaration
public bool dungDiscount { get; set; }
Property Value
Type Description
bool
View Source

requiredPlayerDataBool

Declaration
public string requiredPlayerDataBool { get; set; }
Property Value
Type Description
string

Methods

View Source

AddItemWithCost(AbstractItem, Cost)

Declaration
public void AddItemWithCost(AbstractItem item, Cost cost)
Parameters
Type Name Description
AbstractItem item
Cost cost
View Source

AddItemWithCost(AbstractItem, int)

Declaration
public void AddItemWithCost(AbstractItem item, int geoCost)
Parameters
Type Name Description
AbstractItem item
int geoCost
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
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[]
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[]
View Source

GetPlacementAndLocationTags()

Declaration
public override IEnumerable<Tag> GetPlacementAndLocationTags()
Returns
Type Description
IEnumerable<Tag>
Overrides
AbstractPlacement.GetPlacementAndLocationTags()
View Source

KeepOldItem(ShopItemStats)

Declaration
public bool KeepOldItem(ShopItemStats stats)
Parameters
Type Name Description
ShopItemStats stats
Returns
Type Description
bool
View Source

OnLoad()

Called by Load(). Dispose hooks in OnUnload.

Declaration
protected override void OnLoad()
Overrides
AbstractPlacement.OnLoad()
View Source

OnPreview(string)

Declaration
[Obsolete]
public override void OnPreview(string previewText)
Parameters
Type Name Description
string previewText
Overrides
AbstractPlacement.OnPreview(string)
View Source

OnPreviewBatch(IEnumerable<(string, AbstractItem item)>)

Declaration
public void OnPreviewBatch(IEnumerable<(string, AbstractItem item)> ps)
Parameters
Type Name Description
IEnumerable<(string, AbstractItem item)> ps
View Source

OnUnload()

Called by Unload().

Declaration
protected override void OnUnload()
Overrides
AbstractPlacement.OnUnload()

Implements

IShopPlacement
IMultiCostPlacement
IPrimaryLocationPlacement

Extension Methods

Extensions.Yield<T>(T)
  • View Source
In this article
Back to top Generated by DocFX