Co-authored-by: Vera Aguilera Puerto <6766154+Zumorica@users.noreply.github.com> Co-authored-by: E F R <602406+Efruit@users.noreply.github.com> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
78 lines
2.4 KiB
C#
78 lines
2.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Content.Shared.Atmos.Monitor.Components;
|
|
using Robust.Shared.Serialization;
|
|
|
|
namespace Content.Shared.Atmos.Piping.Unary.Components
|
|
{
|
|
[Serializable, NetSerializable]
|
|
public 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; }
|
|
public ScrubberPumpDirection? PumpDirection { get; set; }
|
|
public float? VolumeRate { get; set; }
|
|
public bool WideNet { get; set; }
|
|
|
|
public static HashSet<Gas> DefaultFilterGases = new()
|
|
{
|
|
Gas.CarbonDioxide,
|
|
Gas.Plasma,
|
|
Gas.Tritium,
|
|
Gas.WaterVapor,
|
|
};
|
|
|
|
// Presets for 'dumb' air alarm modes
|
|
|
|
public static GasVentScrubberData FilterModePreset = new GasVentScrubberData
|
|
{
|
|
Enabled = true,
|
|
FilterGases = GasVentScrubberData.DefaultFilterGases,
|
|
PumpDirection = ScrubberPumpDirection.Scrubbing,
|
|
VolumeRate = 200f,
|
|
WideNet = false
|
|
};
|
|
|
|
public static GasVentScrubberData FillModePreset = new GasVentScrubberData
|
|
{
|
|
Enabled = false,
|
|
Dirty = true,
|
|
FilterGases = GasVentScrubberData.DefaultFilterGases,
|
|
PumpDirection = ScrubberPumpDirection.Scrubbing,
|
|
VolumeRate = 200f,
|
|
WideNet = false
|
|
};
|
|
|
|
public static GasVentScrubberData PanicModePreset = new GasVentScrubberData
|
|
{
|
|
Enabled = true,
|
|
Dirty = true,
|
|
FilterGases = GasVentScrubberData.DefaultFilterGases,
|
|
PumpDirection = ScrubberPumpDirection.Siphoning,
|
|
VolumeRate = 200f,
|
|
WideNet = false
|
|
};
|
|
|
|
public static GasVentScrubberData Default()
|
|
{
|
|
return new GasVentScrubberData
|
|
{
|
|
Enabled = true,
|
|
FilterGases = GasVentScrubberData.DefaultFilterGases,
|
|
PumpDirection = ScrubberPumpDirection.Scrubbing,
|
|
VolumeRate = 200f,
|
|
WideNet = false
|
|
};
|
|
}
|
|
}
|
|
|
|
[Serializable, NetSerializable]
|
|
public enum ScrubberPumpDirection : sbyte
|
|
{
|
|
Siphoning = 0,
|
|
Scrubbing = 1,
|
|
}
|
|
}
|