Class ContainerInfo
Information about the capacity and contents of a container for display in the UI
Inheritance
System.Object
ContainerInfo
Namespace: Content.Shared.Chemistry
Assembly: Content.Shared.dll
Syntax
public sealed class ContainerInfo : object
Constructors
| Improve this Doc View SourceContainerInfo(String, FixedPoint2, FixedPoint2)
Declaration
public ContainerInfo(string displayName, FixedPoint2 currentVolume, FixedPoint2 maxVolume)
Parameters
Type | Name | Description |
---|---|---|
System.String | displayName | |
FixedPoint2 | currentVolume | |
FixedPoint2 | maxVolume |
Fields
| Improve this Doc View SourceCurrentVolume
The currently used volume of the container
Declaration
public readonly FixedPoint2 CurrentVolume
Field Value
Type | Description |
---|---|
FixedPoint2 |
DisplayName
The container name to show to the player
Declaration
public readonly string DisplayName
Field Value
Type | Description |
---|---|
System.String |
MaxVolume
The maximum volume of the container
Declaration
public readonly FixedPoint2 MaxVolume
Field Value
Type | Description |
---|---|
FixedPoint2 |
Properties
| Improve this Doc View SourceEntities
A list of the entities and their sizes within the container
Declaration
public List<(string Id, FixedPoint2 Quantity)>? Entities { get; }
Property Value
Type | Description |
---|---|
System.Nullable<List<System.ValueTuple<System.String, FixedPoint2>>> |
Reagents
Declaration
public List<ReagentQuantity>? Reagents { get; }
Property Value
Type | Description |
---|---|
System.Nullable<List<ReagentQuantity>> |