Class ContainerInfo
Data for instructing a Container class to make changes. The ContainerGiveInfo field must not be null.
Inheritance
ContainerInfo
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
View Source
ContainerInfo(string, AbstractPlacement, FlingType)
Creates ContainerInfo with standard ContainerGiveInfo.
Declaration
public ContainerInfo(string containerType, AbstractPlacement placement, FlingType flingType)
Parameters
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
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
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
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
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
View Source
ContainerInfo(string, ContainerGiveInfo, CostInfo?, ChangeSceneInfo?)
Declaration
public ContainerInfo(string containerType, ContainerGiveInfo giveInfo, CostInfo? costInfo, ChangeSceneInfo? changeSceneInfo)
Parameters
Fields
View Source
changeSceneInfo
Declaration
public ChangeSceneInfo? changeSceneInfo
Field Value
View Source
containerType
Declaration
public string containerType
Field Value
View Source
costInfo
Declaration
public CostInfo? costInfo
Field Value
View Source
giveInfo
Declaration
public ContainerGiveInfo giveInfo
Field Value
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
Returns
Extension Methods