Class MutablePlacement
The default placement for most use cases.
Chooses an item container for its location based on its item list.
Inheritance
MutablePlacement
Assembly: ItemChanger.dll
Syntax
public class MutablePlacement : AbstractPlacement, IContainerPlacement, ISingleCostPlacement, IPrimaryLocationPlacement
Constructors
View Source
MutablePlacement(string)
Declaration
public MutablePlacement(string Name)
Parameters
| Type |
Name |
Description |
| string |
Name |
|
Fields
View Source
Location
Declaration
public ContainerLocation Location
Field Value
View Source
containerType
Declaration
public string containerType
Field Value
Properties
View Source
Cost
Declaration
public Cost? Cost { get; set; }
Property Value
View Source
MainContainerType
The container type that best describes the placement as a whole.
Declaration
public override string MainContainerType { get; }
Property Value
Overrides
Methods
View Source
ChooseContainerType(ISingleCostPlacement, ContainerLocation?, IEnumerable<AbstractItem>)
Declaration
public static string ChooseContainerType(ISingleCostPlacement placement, ContainerLocation? location, IEnumerable<AbstractItem> items)
Parameters
Returns
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
OnUnload()
Declaration
protected override void OnUnload()
Overrides
Implements
Extension Methods