Show / Hide Table of Contents

Class MutablePlacement

The default placement for most use cases. Chooses an item container for its location based on its item list.

Inheritance
object
TaggableObject
AbstractPlacement
MutablePlacement
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 MutablePlacement : AbstractPlacement, IContainerPlacement, ISingleCostPlacement, IPrimaryLocationPlacement

Constructors

View Source

MutablePlacement(string)

Declaration
public MutablePlacement(string Name)
Parameters
Type Name Description
string Name

Fields

View Source

Location

Declaration
public ContainerLocation Location
Field Value
Type Description
ContainerLocation
View Source

containerType

Declaration
public string containerType
Field Value
Type Description
string

Properties

View Source

Cost

Declaration
public Cost? Cost { get; set; }
Property Value
Type Description
Cost
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

ChooseContainerType(ISingleCostPlacement, ContainerLocation?, IEnumerable<AbstractItem>)

Declaration
public static string ChooseContainerType(ISingleCostPlacement placement, ContainerLocation? location, IEnumerable<AbstractItem> items)
Parameters
Type Name Description
ISingleCostPlacement placement
ContainerLocation location
IEnumerable<AbstractItem> items
Returns
Type Description
string
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