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
CostChestPlacement
Inherited Members
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()
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
|
Improve this Doc
View Source
tabletLocation
Declaration
public PlaceableLocation tabletLocation
Field Value
Methods
|
Improve this Doc
View Source
AddItem(AbstractItem, Cost)
Declaration
public void AddItem(AbstractItem item, Cost cost)
Parameters
|
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
Declaration
public override IEnumerable<Tag> GetPlacementAndLocationTags()
Returns
Type |
Description |
IEnumerable<Tag> |
|
Overrides
|
Improve this Doc
View Source
OnLoad()
Declaration
protected override void OnLoad()
Overrides
|
Improve this Doc
View Source
OnPreview(String)
Declaration
public override void OnPreview(string previewText)
Parameters
Type |
Name |
Description |
System.String |
previewText |
|
Overrides
|
Improve this Doc
View Source
OnUnload()
Declaration
protected override void OnUnload()
Overrides
Explicit Interface Implementations
|
Improve this Doc
View Source
IPrimaryLocationPlacement.Location
Declaration
AbstractLocation IPrimaryLocationPlacement.Location { get; }
Returns
Implements
Extension Methods