Show / Hide Table of Contents

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 Source

ContainerInfo(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 Source

CurrentVolume

The currently used volume of the container

Declaration
public readonly FixedPoint2 CurrentVolume
Field Value
Type Description
FixedPoint2
| Improve this Doc View Source

DisplayName

The container name to show to the player

Declaration
public readonly string DisplayName
Field Value
Type Description
System.String
| Improve this Doc View Source

MaxVolume

The maximum volume of the container

Declaration
public readonly FixedPoint2 MaxVolume
Field Value
Type Description
FixedPoint2

Properties

| Improve this Doc View Source

Entities

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

Reagents

Declaration
public List<ReagentQuantity>? Reagents { get; }
Property Value
Type Description
System.Nullable<List<ReagentQuantity>>
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾