Show / Hide Table of Contents

Class DualPlacement

Placement which handles switching between two possible locations according to a test.

Inheritance
object
TaggableObject
AbstractPlacement
DualPlacement
Implements
IContainerPlacement
ISingleCostPlacement
IPrimaryLocationPlacement
Inherited Members
AbstractPlacement.GiveAll(GiveInfo, Action)
AbstractPlacement.OnObtainedItem(AbstractItem)
AbstractPlacement.OnPreview(string)
AbstractPlacement.GetUIName()
AbstractPlacement.GetUIName(int)
AbstractPlacement.AllObtained()
AbstractPlacement.AddVisitFlag(VisitState)
AbstractPlacement.CheckVisitedAny(VisitState)
AbstractPlacement.CheckVisitedAll(VisitState)
AbstractPlacement.Load()
AbstractPlacement.Unload()
AbstractPlacement.Add(AbstractItem)
AbstractPlacement.Add(IEnumerable<AbstractItem>)
AbstractPlacement.Add(params AbstractItem[])
AbstractPlacement.Name
AbstractPlacement.Items
AbstractPlacement.Visited
AbstractPlacement.OnVisitStateChangedGlobal
AbstractPlacement.OnVisitStateChanged
TaggableObject.tags
TaggableObject.LoadTags()
TaggableObject.UnloadTags()
TaggableObject.AddTag<T>()
TaggableObject.AddTag(Tag)
TaggableObject.AddTags(IEnumerable<Tag>)
TaggableObject.GetTag<T>()
TaggableObject.GetTag<T>(out T)
TaggableObject.GetTags<T>()
TaggableObject.GetOrAddTag<T>()
TaggableObject.HasTag<T>()
TaggableObject.RemoveTags<T>()
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: ItemChanger.Placements
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
public IBool Test
Field Value
Type Description
IBool
View Source

containerType

Declaration
public string containerType
Field Value
Type Description
string
View Source

falseLocation

Declaration
public AbstractLocation falseLocation
Field Value
Type Description
AbstractLocation
View Source

trueLocation

Declaration
public AbstractLocation trueLocation
Field Value
Type Description
AbstractLocation

Properties

View Source

Cost

Declaration
public Cost? Cost { get; set; }
Property Value
Type Description
Cost
View Source

Location

Declaration
public AbstractLocation Location { get; }
Property Value
Type Description
AbstractLocation
View Source

MainContainerType

The container type that best describes the placement as a whole.

Declaration
public override string MainContainerType { get; }
Property Value
Type Description
string
Overrides
AbstractPlacement.MainContainerType

Methods

View Source

GetContainer(AbstractLocation, out GameObject, out string)

Declaration
public void GetContainer(AbstractLocation location, out GameObject obj, out string containerType)
Parameters
Type Name Description
AbstractLocation location
GameObject obj
string containerType
View Source

GetPlacementAndLocationTags()

Declaration
public override IEnumerable<Tag> GetPlacementAndLocationTags()
Returns
Type Description
IEnumerable<Tag>
Overrides
AbstractPlacement.GetPlacementAndLocationTags()
View Source

OnLoad()

Called by Load(). Dispose hooks in OnUnload.

Declaration
protected override void OnLoad()
Overrides
AbstractPlacement.OnLoad()
View Source

OnUnload()

Called by Unload().

Declaration
protected override void OnUnload()
Overrides
AbstractPlacement.OnUnload()

Implements

IContainerPlacement
ISingleCostPlacement
IPrimaryLocationPlacement

Extension Methods

Extensions.Yield<T>(T)
  • View Source
In this article
Back to top Generated by DocFX