Class TransformableContainerComponent
A container that transforms its appearance depending on the reagent it contains. It returns to its initial state once the reagent is removed. e.g. An empty glass changes to a beer glass when beer is added to it.
Should probably be joined with SolutionContainerVisualsComponent when solutions are networked.
Inheritance
Namespace: Content.Server.Chemistry.Components
Assembly: Content.Server.dll
Syntax
public sealed class TransformableContainerComponent : Component
Fields
| Improve this Doc View SourceCurrentReagent
This stores whatever primary reagent is currently in the container. It is used to help determine if a transformation is needed on solution update.
Declaration
public ReagentPrototype CurrentReagent
Field Value
Type | Description |
---|---|
ReagentPrototype |
InitialDescription
This is the initial metadata description for the container. It will revert to this when emptied. /// It defaults to the description of the parent entity unless overwritten.
Declaration
public string? InitialDescription
Field Value
Type | Description |
---|---|
System.Nullable<System.String> |
InitialName
This is the initial metadata name for the container. It will revert to this when emptied. It defaults to the name of the parent entity unless overwritten.
Declaration
public string? InitialName
Field Value
Type | Description |
---|---|
System.Nullable<System.String> |
Transformed
This returns whether this container in a transformed or initial state.
Declaration
public bool Transformed
Field Value
Type | Description |
---|---|
System.Boolean |