Class DualPlacement
Placement which handles switching between two possible locations according to a test.
Inheritance
DualPlacement
Assembly: ItemChanger.dll
Syntax
public class DualPlacement : AbstractPlacement, IContainerPlacement, ISingleCostPlacement, IPrimaryLocationPlacement
Constructors
View Source
DualPlacement(string)
Declaration
public DualPlacement(string Name)
Parameters
| Type |
Name |
Description |
| string |
Name |
|
Fields
View Source
Test
Declaration
Field Value
View Source
containerType
Declaration
public string containerType
Field Value
View Source
falseLocation
Declaration
public AbstractLocation falseLocation
Field Value
View Source
trueLocation
Declaration
public AbstractLocation trueLocation
Field Value
Properties
View Source
Cost
Declaration
public Cost? Cost { get; set; }
Property Value
View Source
Location
Declaration
public AbstractLocation Location { get; }
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
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