* air alarm panic wire snipping forces panic mode * document * ForcedMode is datafield * switch to bool flag * lock button when panic wire cut * prevent manually individually changing scrubbers from siphon when panic wire is cut * failure alert when wire snipped * is Control * remove double horizontalExpand * Update Content.Server/Atmos/Monitor/Systems/AirAlarmSystem.cs * Update Content.Server/Atmos/Monitor/Systems/AirAlarmSystem.cs --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
88 lines
2.9 KiB
C#
88 lines
2.9 KiB
C#
using Content.Shared.Atmos.Monitor.Components;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Atmos.Piping.Unary.Components
|
|
{
|
|
[Serializable, NetSerializable]
|
|
public sealed class GasVentScrubberData : IAtmosDeviceData
|
|
{
|
|
public bool Enabled { get; set; }
|
|
public bool Dirty { get; set; }
|
|
public bool IgnoreAlarms { get; set; } = false;
|
|
public HashSet<Gas> FilterGases { get; set; } = new(DefaultFilterGases);
|
|
public ScrubberPumpDirection PumpDirection { get; set; } = ScrubberPumpDirection.Scrubbing;
|
|
public float VolumeRate { get; set; } = 200f;
|
|
public bool WideNet { get; set; } = false;
|
|
public bool AirAlarmPanicWireCut { get; set; }
|
|
|
|
public static HashSet<Gas> DefaultFilterGases = new()
|
|
{
|
|
Gas.CarbonDioxide,
|
|
Gas.Plasma,
|
|
Gas.Tritium,
|
|
Gas.WaterVapor,
|
|
Gas.Ammonia,
|
|
Gas.NitrousOxide,
|
|
Gas.Frezon
|
|
};
|
|
|
|
// Presets for 'dumb' air alarm modes
|
|
|
|
public static GasVentScrubberData FilterModePreset = new GasVentScrubberData
|
|
{
|
|
Enabled = true,
|
|
FilterGases = new(GasVentScrubberData.DefaultFilterGases),
|
|
PumpDirection = ScrubberPumpDirection.Scrubbing,
|
|
VolumeRate = 200f,
|
|
WideNet = false
|
|
};
|
|
|
|
public static GasVentScrubberData WideFilterModePreset = new GasVentScrubberData
|
|
{
|
|
Enabled = true,
|
|
FilterGases = new(GasVentScrubberData.DefaultFilterGases),
|
|
PumpDirection = ScrubberPumpDirection.Scrubbing,
|
|
VolumeRate = 200f,
|
|
WideNet = true
|
|
};
|
|
|
|
public static GasVentScrubberData FillModePreset = new GasVentScrubberData
|
|
{
|
|
Enabled = false,
|
|
Dirty = true,
|
|
FilterGases = new(GasVentScrubberData.DefaultFilterGases),
|
|
PumpDirection = ScrubberPumpDirection.Scrubbing,
|
|
VolumeRate = 200f,
|
|
WideNet = false
|
|
};
|
|
|
|
public static GasVentScrubberData PanicModePreset = new GasVentScrubberData
|
|
{
|
|
Enabled = true,
|
|
Dirty = true,
|
|
FilterGases = new(GasVentScrubberData.DefaultFilterGases),
|
|
PumpDirection = ScrubberPumpDirection.Siphoning,
|
|
VolumeRate = 200f,
|
|
WideNet = true
|
|
};
|
|
|
|
public static GasVentScrubberData ReplaceModePreset = new GasVentScrubberData
|
|
{
|
|
Enabled = true,
|
|
IgnoreAlarms = true,
|
|
Dirty = true,
|
|
FilterGases = new(GasVentScrubberData.DefaultFilterGases),
|
|
PumpDirection = ScrubberPumpDirection.Siphoning,
|
|
VolumeRate = 200f,
|
|
WideNet = false
|
|
};
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum ScrubberPumpDirection : sbyte
|
|
{
|
|
Siphoning = 0,
|
|
Scrubbing = 1,
|
|
}
|
|
}
|