2022-07-15 08:46:30 -04:00
|
|
|
using Content.Shared.Atmos;
|
|
|
|
|
|
|
|
|
|
namespace Content.Server.Atmos.Portable
|
|
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2023-08-22 18:14:33 -07:00
|
|
|
public sealed partial class PortableScrubberComponent : Component
|
2022-07-15 08:46:30 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The air inside this machine.
|
|
|
|
|
/// </summary>
|
2022-10-22 18:49:30 -04:00
|
|
|
[DataField("gasMixture"), ViewVariables(VVAccess.ReadWrite)]
|
2023-08-22 18:14:33 -07:00
|
|
|
public GasMixture Air { get; private set; } = new();
|
2022-07-15 08:46:30 -04:00
|
|
|
|
2022-10-22 18:49:30 -04:00
|
|
|
[DataField("port"), ViewVariables(VVAccess.ReadWrite)]
|
2022-07-15 08:46:30 -04:00
|
|
|
public string PortName { get; set; } = "port";
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Which gases this machine will scrub out.
|
|
|
|
|
/// Unlike fixed scrubbers controlled by an air alarm,
|
|
|
|
|
/// this can't be changed in game.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("filterGases")]
|
|
|
|
|
public HashSet<Gas> FilterGases = new()
|
|
|
|
|
{
|
|
|
|
|
Gas.CarbonDioxide,
|
|
|
|
|
Gas.Plasma,
|
|
|
|
|
Gas.Tritium,
|
|
|
|
|
Gas.WaterVapor,
|
2023-12-20 21:19:50 -07:00
|
|
|
Gas.Ammonia,
|
2022-07-27 02:55:28 -07:00
|
|
|
Gas.NitrousOxide,
|
|
|
|
|
Gas.Frezon
|
2022-07-15 08:46:30 -04:00
|
|
|
};
|
|
|
|
|
|
2022-10-22 18:49:30 -04:00
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public bool Enabled = true;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Maximum internal pressure before it refuses to take more.
|
|
|
|
|
/// </summary>
|
2024-01-22 17:13:04 -05:00
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
2022-10-22 18:49:30 -04:00
|
|
|
public float MaxPressure = 2500;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// The speed at which gas is scrubbed from the environment.
|
|
|
|
|
/// </summary>
|
2024-01-22 17:13:04 -05:00
|
|
|
[DataField, ViewVariables(VVAccess.ReadWrite)]
|
2022-10-22 18:49:30 -04:00
|
|
|
public float TransferRate = 800;
|
2022-07-15 08:46:30 -04:00
|
|
|
}
|
|
|
|
|
}
|