Show / Hide Table of Contents

Class CostChestPlacement

Placement which allows shop-like behavior, with a tablet showing item names and costs near a chest.
When the chest is opened, any costs that can be paid are paid and the corresponding items are spawned.

Inheritance
object
TaggableObject
AbstractPlacement
CostChestPlacement
Implements
IContainerPlacement
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.MainContainerType
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 CostChestPlacement : AbstractPlacement, IContainerPlacement, IMultiCostPlacement, IPrimaryLocationPlacement

Constructors

View Source

CostChestPlacement(string)

Declaration
public CostChestPlacement(string Name)
Parameters
Type Name Description
string Name

Fields

View Source

chestLocation

Declaration
public ContainerLocation chestLocation
Field Value
Type Description
ContainerLocation
View Source

tabletLocation

Declaration
public PlaceableLocation tabletLocation
Field Value
Type Description
PlaceableLocation

Methods

View Source

AddItem(AbstractItem, Cost)

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

BuildText()

Declaration
public string BuildText()
Returns
Type Description
string
View Source

EditChestFsm(GameObject)

Declaration
public void EditChestFsm(GameObject chest)
Parameters
Type Name Description
GameObject chest
View Source

GetContainer(AbstractLocation, out GameObject, out string)

Declaration
public void GetContainer(AbstractLocation location, out GameObject obj, out string containerType)
Parameters
Type Name Description
AbstractLocation location
GameObject obj
string containerType
View Source

GetPlacementAndLocationTags()

Declaration
public override IEnumerable<Tag> GetPlacementAndLocationTags()
Returns
Type Description
IEnumerable<Tag>
Overrides
AbstractPlacement.GetPlacementAndLocationTags()
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

OnUnload()

Called by Unload().

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

Implements

IContainerPlacement
IMultiCostPlacement
IPrimaryLocationPlacement

Extension Methods

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