Class GrubJarContainer
Container for creating and modifying grubs.
Inherited Members
Namespace: ItemChanger.Containers
Assembly: ItemChanger.dll
Syntax
public class GrubJarContainer : Container
Constructors
View SourceGrubJarContainer()
Declaration
public GrubJarContainer()
Properties
View SourceName
The unique name of the container.
Declaration
public override string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Overrides
View SourceSupportsDrop
Returns true if the container has a natural way to be dropped from midair.
Declaration
public override bool SupportsDrop { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
View SourceSupportsInstantiate
Returns true if the container can be instantiated. For some containers, this value is variable in which objects were preloaded.
Declaration
public override bool SupportsInstantiate { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Methods
View SourceAddGiveEffectToFsm(PlayMakerFSM, ContainerGiveInfo)
Called during the container fsm hook to set up the container to give items.
Declaration
public override void AddGiveEffectToFsm(PlayMakerFSM fsm, ContainerGiveInfo info)
Parameters
| Type | Name | Description |
|---|---|---|
| PlayMakerFSM | fsm | |
| ContainerGiveInfo | info |
Overrides
View SourceApplyTargetContext(GameObject, float, float, float)
Puts the container in the specified position, up to the elevation correction in y.
Declaration
public override void ApplyTargetContext(GameObject obj, float x, float y, float elevation)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | obj | |
| float | x | |
| float | y | |
| float | elevation |
Overrides
View SourceApplyTargetContext(GameObject, GameObject, float)
Puts the container in the same position and hierarchy of the target, up to the elevation correction in y.
Declaration
public override void ApplyTargetContext(GameObject obj, GameObject target, float elevation)
Parameters
| Type | Name | Description |
|---|---|---|
| GameObject | obj | |
| GameObject | target | |
| float | elevation |
Overrides
View SourceGetNewContainer(ContainerInfo)
Produces a new object of this container type.
Declaration
public override GameObject GetNewContainer(ContainerInfo info)
Parameters
| Type | Name | Description |
|---|---|---|
| ContainerInfo | info |
Returns
| Type | Description |
|---|---|
| GameObject |
Overrides
Exceptions
| Type | Condition |
|---|---|
| NotImplementedException | The container does not support instantiation. |