Files
crystall-punk-14/Content.Server/Atmos/Monitor/Components/AirAlarmComponent.cs

28 lines
1012 B
C#
Raw Normal View History

using Content.Shared.Atmos.Monitor;
using Content.Shared.Atmos.Monitor.Components;
using Content.Shared.Atmos.Piping.Unary.Components;
using Robust.Shared.Network;
2022-08-23 10:55:46 -07:00
namespace Content.Server.Atmos.Monitor.Components;
[RegisterComponent]
public sealed class AirAlarmComponent : Component
{
2022-08-23 10:55:46 -07:00
[ViewVariables] public AirAlarmMode CurrentMode { get; set; } = AirAlarmMode.Filtering;
[ViewVariables] public bool AutoMode { get; set; } = true;
2022-08-23 10:55:46 -07:00
// Remember to null this afterwards.
[ViewVariables] public IAirAlarmModeUpdate? CurrentModeUpdater { get; set; }
2022-08-23 10:55:46 -07:00
[ViewVariables] public AirAlarmTab CurrentTab { get; set; }
public readonly HashSet<string> KnownDevices = new();
public readonly Dictionary<string, GasVentPumpData> VentData = new();
public readonly Dictionary<string, GasVentScrubberData> ScrubberData = new();
public readonly Dictionary<string, AtmosSensorData> SensorData = new();
2022-08-23 10:55:46 -07:00
public HashSet<NetUserId> ActivePlayers = new();
2022-08-23 10:55:46 -07:00
public bool CanSync = true;
}