Show / Hide Table of Contents

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
System.Object
TaggableObject
AbstractLocation
AutoLocation
ContainerLocation
DualLocation
ExistingContainerLocation
ShopLocation
CostChestLocation
EggShopLocation
Inherited Members
TaggableObject.tags
TaggableObject.LoadTags()
TaggableObject.UnloadTags()
TaggableObject.AddTag<T>()
TaggableObject.AddTag(Tag)
TaggableObject.AddTags(IEnumerable<Tag>)
TaggableObject.GetTag<T>()
TaggableObject.GetTag<T>(T)
TaggableObject.GetTags<T>()
TaggableObject.GetOrAddTag<T>()
TaggableObject.HasTag<T>()
TaggableObject.RemoveTags<T>()
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
Assembly: ItemChanger.dll
Syntax
public abstract class AbstractLocation : TaggableObject

Fields

| Improve this Doc View Source

flingType

The flingType of the location, specifying how geo and similar objects are to be flung.

Declaration
public FlingType flingType
Field Value
Type Description
FlingType
| Improve this Doc View Source

name

The name of the location. Location names are often, but not always, distinct.

Declaration
public string name
Field Value
Type Description
System.String
| Improve this Doc View Source

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 Source

Placement

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
| Improve this Doc View Source

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 Source

Clone()

Performs a deep clone of the location.

Declaration
public virtual AbstractLocation Clone()
Returns
Type Description
AbstractLocation
| Improve this Doc View Source

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()
| Improve this Doc View Source

OnLoad()

Called during Load(). Allows the location to initialize and set up any hooks.

Declaration
protected abstract void OnLoad()
| Improve this Doc View Source

OnUnload()

Called during Unload(). Allows the location to dispose any hooks.

Declaration
protected abstract void OnUnload()
| Improve this Doc View Source

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()
| Improve this Doc View Source

Wrap()

Creates a default placement for this location.

Declaration
public abstract AbstractPlacement Wrap()
Returns
Type Description
AbstractPlacement

Extension Methods

Extensions.Yield<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX