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

Constructors

| Improve this Doc View Source

CostChestPlacement(String)

Declaration
public CostChestPlacement(string Name)
Parameters
Type Name Description
System.String Name

Fields

| Improve this Doc View Source

chestLocation

Declaration
public ContainerLocation chestLocation
Field Value
Type Description
ContainerLocation
| Improve this Doc View Source

tabletLocation

Declaration
public PlaceableLocation tabletLocation
Field Value
Type Description
PlaceableLocation

Methods

| Improve this Doc View Source

AddItem(AbstractItem, Cost)

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

BuildText()

Declaration
public string BuildText()
Returns
Type Description
System.String
| Improve this Doc View Source

EditChestFsm(GameObject)

Declaration
public void EditChestFsm(GameObject chest)
Parameters
Type Name Description
GameObject chest
| Improve this Doc 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
System.String containerType
| 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

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

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

IContainerPlacement
IMultiCostPlacement
IPrimaryLocationPlacement

Extension Methods

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