Class ExistingContainerLocation
An abstract location which can be optionally replaced with a container, but has a natural way of giving items if not replaced.
Inheritance
System.Object
ExistingContainerLocation
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()
Namespace: ItemChanger.Locations
Assembly: ItemChanger.dll
Syntax
public abstract class ExistingContainerLocation : AbstractLocation
Fields
| Improve this Doc View SourcecontainerType
Declaration
public string containerType
Field Value
Type | Description |
---|---|
System.String |
nonreplaceable
Declaration
public bool nonreplaceable
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
| Improve this Doc View SourceHandlesCostBeforeContainer
Returns true if the placement does not need to choose a container that supports costs because the location will manage the cost separately.
Declaration
public virtual bool HandlesCostBeforeContainer { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceAsContainerLocation()
Converts the location to a ContainerLocation. The new location will always replace its container, instead of conditionally modifying it in place.
Declaration
public abstract ContainerLocation AsContainerLocation()
Returns
Type | Description |
---|---|
ContainerLocation |
WillBeReplaced()
Declaration
public virtual bool WillBeReplaced()
Returns
Type | Description |
---|---|
System.Boolean |
Wrap()
Declaration
public override AbstractPlacement Wrap()
Returns
Type | Description |
---|---|
AbstractPlacement |