Show / Hide Table of Contents

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
System.Object
TransformableContainerComponent
Namespace: Content.Server.Chemistry.Components
Assembly: Content.Server.dll
Syntax
public sealed class TransformableContainerComponent : Component

Fields

| Improve this Doc View Source

CurrentReagent

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
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

Transformed

This returns whether this container in a transformed or initial state.

Declaration
public bool Transformed
Field Value
Type Description
System.Boolean
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾