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
CostChestPlacement
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
View Source
tabletLocation
Declaration
public PlaceableLocation tabletLocation
Field Value
Methods
View Source
AddItem(AbstractItem, Cost)
Declaration
public void AddItem(AbstractItem item, Cost cost)
Parameters
View Source
BuildText()
Declaration
public string BuildText()
Returns
View Source
EditChestFsm(GameObject)
Declaration
public void EditChestFsm(GameObject chest)
Parameters
View Source
GetContainer(AbstractLocation, out GameObject, out string)
Declaration
public void GetContainer(AbstractLocation location, out GameObject obj, out string containerType)
Parameters
View Source
Declaration
public override IEnumerable<Tag> GetPlacementAndLocationTags()
Returns
Overrides
View Source
OnLoad()
Called by Load(). Dispose hooks in OnUnload.
Declaration
protected override void OnLoad()
Overrides
View Source
OnPreview(string)
Declaration
[Obsolete]
public override void OnPreview(string previewText)
Parameters
| Type |
Name |
Description |
| string |
previewText |
|
Overrides
View Source
OnUnload()
Declaration
protected override void OnUnload()
Overrides
Implements
Extension Methods