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 GasVolumePumpComponent : 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;
|
|
|
|
|
|
2023-09-30 05:35:23 +02:00
|
|
|
[DataField("blocked")]
|
|
|
|
|
public bool Blocked { get; set; } = false;
|
|
|
|
|
|
2021-06-19 13:25:05 +02:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public bool Overclocked { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
[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("transferRate")]
|
2021-06-19 13:25:05 +02:00
|
|
|
public float TransferRate { get; set; } = Atmospherics.MaxTransferRate;
|
|
|
|
|
|
2022-03-01 03:39:30 +13:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
[DataField("maxTransferRate")]
|
|
|
|
|
public float MaxTransferRate { get; set; } = Atmospherics.MaxTransferRate;
|
|
|
|
|
|
2021-06-19 13:25:05 +02:00
|
|
|
[DataField("leakRatio")]
|
|
|
|
|
public float LeakRatio { get; set; } = 0.1f;
|
|
|
|
|
|
|
|
|
|
[DataField("lowerThreshold")]
|
|
|
|
|
public float LowerThreshold { get; set; } = 0.01f;
|
|
|
|
|
|
|
|
|
|
[DataField("higherThreshold")]
|
2022-06-21 14:04:55 +12:00
|
|
|
public float HigherThreshold { get; set; } = DefaultHigherThreshold;
|
|
|
|
|
public static readonly float DefaultHigherThreshold = 2 * Atmospherics.MaxOutputPressure;
|
2021-06-19 13:25:05 +02:00
|
|
|
|
|
|
|
|
[DataField("overclockThreshold")]
|
2022-03-01 03:39:30 +13:00
|
|
|
public float OverclockThreshold { get; set; } = 1000;
|
2023-08-12 22:41:55 +02:00
|
|
|
|
|
|
|
|
[DataField("lastMolesTransferred")]
|
|
|
|
|
public float LastMolesTransferred;
|
2021-06-19 13:25:05 +02:00
|
|
|
}
|
|
|
|
|
}
|