Class AbstractLocation
The base class for all locations. Locations are used by placements to place items.
Usually the location contains raw data and an implementation that may be customizable to an extent by the placement.
Inheritance
Inherited Members
Namespace: ItemChanger
Assembly: ItemChanger.dll
Syntax
public abstract class AbstractLocation : TaggableObject
Fields
| Improve this Doc View SourceflingType
The flingType of the location, specifying how geo and similar objects are to be flung.
Declaration
public FlingType flingType
Field Value
Type | Description |
---|---|
FlingType |
name
The name of the location. Location names are often, but not always, distinct.
Declaration
public string name
Field Value
Type | Description |
---|---|
System.String |
sceneName
The scene name of the location. Locations can however make changes which affect more than one scene, and rarely may choose not to use this field, in which case it can be safely set null.
Declaration
public string sceneName
Field Value
Type | Description |
---|---|
System.String |
Properties
| Improve this Doc View SourcePlacement
The placement holding the location. This is usually set by the placement when the placement loads and before the location loads.
Declaration
public AbstractPlacement Placement { get; set; }
Property Value
Type | Description |
---|---|
AbstractPlacement |
UnsafeSceneName
Fetches the sceneName field and produces an error if it is null.
Declaration
public string UnsafeSceneName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceClone()
Performs a deep clone of the location.
Declaration
public virtual AbstractLocation Clone()
Returns
Type | Description |
---|---|
AbstractLocation |
Load()
Called on a location by its placement, usually during AbstractPlacement.Load().
Execution order is (modules load -> placement tags load -> items load -> placements load)
Declaration
public void Load()
OnLoad()
Called during Load(). Allows the location to initialize and set up any hooks.
Declaration
protected abstract void OnLoad()
OnUnload()
Called during Unload(). Allows the location to dispose any hooks.
Declaration
protected abstract void OnUnload()
Unload()
Called on a location by its placement, usually during AbstractPlacement.Unload().
Execution order is (modules unload -> placement tags unload -> items unload -> placements unload)
Declaration
public void Unload()
Wrap()
Creates a default placement for this location.
Declaration
public abstract AbstractPlacement Wrap()
Returns
Type | Description |
---|---|
AbstractPlacement |