Show / Hide Table of Contents

Class ContainerInfo

Data for instructing a Container class to make changes. The ContainerGiveInfo field must not be null.

Inheritance
object
ContainerInfo
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: ItemChanger
Assembly: ItemChanger.dll
Syntax
public class ContainerInfo

Constructors

View Source

ContainerInfo()

Creates uninitialized ContainerInfo. The giveInfo and containerType fields must be initialized before use.

Declaration
public ContainerInfo()
View Source

ContainerInfo(string, AbstractPlacement, FlingType)

Creates ContainerInfo with standard ContainerGiveInfo.

Declaration
public ContainerInfo(string containerType, AbstractPlacement placement, FlingType flingType)
Parameters
Type Name Description
string containerType
AbstractPlacement placement
FlingType flingType
View Source

ContainerInfo(string, AbstractPlacement, FlingType, Cost?)

Creates ContainerInfo with standard ContainerGiveInfo. If the cost parameter is not null, initializes costInfo with the cost.

Declaration
public ContainerInfo(string containerType, AbstractPlacement placement, FlingType flingType, Cost? cost)
Parameters
Type Name Description
string containerType
AbstractPlacement placement
FlingType flingType
Cost cost
View Source

ContainerInfo(string, AbstractPlacement, FlingType, Cost?, ChangeSceneInfo?)

Creates ContainerInfo with standard ContainerGiveInfo and the provided ChangeSceneInfo. If the cost parameter is not null, initializes costInfo with the cost.

Declaration
public ContainerInfo(string containerType, AbstractPlacement placement, FlingType flingType, Cost? cost, ChangeSceneInfo? changeSceneInfo)
Parameters
Type Name Description
string containerType
AbstractPlacement placement
FlingType flingType
Cost cost
ChangeSceneInfo changeSceneInfo
View Source

ContainerInfo(string, AbstractPlacement, IEnumerable<AbstractItem>, FlingType)

Creates ContainerInfo with standard ContainerGiveInfo.

Declaration
public ContainerInfo(string containerType, AbstractPlacement placement, IEnumerable<AbstractItem> items, FlingType flingType)
Parameters
Type Name Description
string containerType
AbstractPlacement placement
IEnumerable<AbstractItem> items
FlingType flingType
View Source

ContainerInfo(string, AbstractPlacement, IEnumerable<AbstractItem>, FlingType, Cost?)

Creates ContainerInfo with standard ContainerGiveInfo. If the cost parameter is not null, initializes costInfo with the cost.

Declaration
public ContainerInfo(string containerType, AbstractPlacement placement, IEnumerable<AbstractItem> items, FlingType flingType, Cost? cost)
Parameters
Type Name Description
string containerType
AbstractPlacement placement
IEnumerable<AbstractItem> items
FlingType flingType
Cost cost
View Source

ContainerInfo(string, AbstractPlacement, IEnumerable<AbstractItem>, FlingType, Cost?, ChangeSceneInfo?)

Creates ContainerInfo with standard ContainerGiveInfo and the provided ChangeSceneInfo. If the cost parameter is not null, initializes costInfo with the cost.

Declaration
public ContainerInfo(string containerType, AbstractPlacement placement, IEnumerable<AbstractItem> items, FlingType flingType, Cost? cost, ChangeSceneInfo? changeSceneInfo)
Parameters
Type Name Description
string containerType
AbstractPlacement placement
IEnumerable<AbstractItem> items
FlingType flingType
Cost cost
ChangeSceneInfo changeSceneInfo
View Source

ContainerInfo(string, ContainerGiveInfo, CostInfo?, ChangeSceneInfo?)

Declaration
public ContainerInfo(string containerType, ContainerGiveInfo giveInfo, CostInfo? costInfo, ChangeSceneInfo? changeSceneInfo)
Parameters
Type Name Description
string containerType
ContainerGiveInfo giveInfo
CostInfo costInfo
ChangeSceneInfo changeSceneInfo

Fields

View Source

changeSceneInfo

Declaration
public ChangeSceneInfo? changeSceneInfo
Field Value
Type Description
ChangeSceneInfo
View Source

containerType

Declaration
public string containerType
Field Value
Type Description
string
View Source

costInfo

Declaration
public CostInfo? costInfo
Field Value
Type Description
CostInfo
View Source

giveInfo

Declaration
public ContainerGiveInfo giveInfo
Field Value
Type Description
ContainerGiveInfo

Methods

View Source

FindContainerInfo(GameObject)

Searches for ContainerInfo on a ContainerInfoComponent. Returns null if neither is found.

Declaration
public static ContainerInfo? FindContainerInfo(GameObject obj)
Parameters
Type Name Description
GameObject obj
Returns
Type Description
ContainerInfo

Extension Methods

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