Files
wwdpublic/Content.Server/Atmos/Piping/Unary/Components/GasCondenserComponent.cs
sleepyyapril 4b8b0591d6 v239.0.0 + .NET 9 (#1475)
yeag

---------

Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com>

(cherry picked from commit 64a389a1158d22fbe7cdbe0a71d223b66dcfd5b6)
2025-01-14 02:18:31 +03:00

41 lines
1.1 KiB
C#

using Content.Server.Atmos.Piping.Unary.EntitySystems;
using Content.Shared.Chemistry.Components;
namespace Content.Server.Atmos.Piping.Unary.Components;
/// <summary>
/// Used for an entity that converts moles of gas into units of reagent.
/// </summary>
[RegisterComponent]
[Access(typeof(GasCondenserSystem))]
public sealed partial class GasCondenserComponent : Component
{
/// <summary>
/// The ID for the pipe node.
/// </summary>
[DataField]
public string Inlet = "pipe";
/// <summary>
/// The ID for the solution.
/// </summary>
[DataField]
public string SolutionId = "tank";
/// <summary>
/// The solution that gases are condensed into.
/// </summary>
[ViewVariables]
public Entity<SolutionComponent>? Solution = null;
/// <summary>
/// For a condenser, how many U of reagents are given per each mole of gas.
/// </summary>
/// <remarks>
/// Derived from a standard of 500u per canister:
/// 400u / 1871.71051 moles per canister
/// </remarks>
[DataField, ViewVariables(VVAccess.ReadWrite)]
public float MolesToReagentMultiplier = 0.2137f;
}