2021-06-19 13:25:05 +02:00
|
|
|
using Content.Shared.Atmos;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Atmos.Piping.Binary.Components
|
|
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class GasPressurePumpComponent : Component
|
2021-06-19 13:25:05 +02:00
|
|
|
{
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2022-05-14 21:08:27 +01:00
|
|
|
[DataField("enabled")]
|
2021-06-19 13:25:05 +02:00
|
|
|
public bool Enabled { get; set; } = true;
|
|
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("inlet")]
|
|
|
|
|
public string InletName { get; set; } = "inlet";
|
|
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("outlet")]
|
|
|
|
|
public string OutletName { get; set; } = "outlet";
|
|
|
|
|
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
2022-03-01 03:39:30 +13:00
|
|
|
[DataField("targetPressure")]
|
2021-06-19 13:25:05 +02:00
|
|
|
public float TargetPressure { get; set; } = Atmospherics.OneAtmosphere;
|
2022-03-01 03:39:30 +13:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Max pressure of the target gas (NOT relative to source).
|
|
|
|
|
/// </summary>
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("maxTargetPressure")]
|
|
|
|
|
public float MaxTargetPressure = Atmospherics.MaxOutputPressure;
|
2021-06-19 13:25:05 +02:00
|
|
|
}
|
|
|
|
|
}
|