mirror of
https://github.com/WWhiteDreamProject/wwdpublic.git
synced 2026-04-17 21:48:58 +03:00
# Description <!-- Explain this PR in as much detail as applicable Some example prompts to consider: How might this affect the game? The codebase? What might be some alternatives to this? How/Who does this benefit/hurt [the game/codebase]? --> Ports https://github.com/space-wizards/space-station-14/pull/32294 Ports https://github.com/ss14-harmony/ss14-harmony/pull/310 (and everything needed for it to function) Early-merges https://github.com/space-wizards/space-station-14/pull/34302 Adds the ability for multiple central command maps that get randomly selected. Tested and works. --- # Changelog <!-- You can add an author after the `🆑` to change the name that appears in the changelog (ex: `🆑 Death`) Leaving it blank will default to your GitHub display name This includes all available types for the changelog --> 🆑 Several contributors - add: Added a new central command map that is randomly picked alongside the old one (thank you to Spanky from Harmony) - add: Added Advanced SMES for mappers. - add: Added the atmospheric network monitor for seeing what the temperature, moles, and pressure is on every pipe everywhere through a computer. - add: Nukie med bundle now contains a compact defibrillator. - add: Ported a better mapping editor. - add: Added the throngler plushie. - remove: Removed the Throngler as a possible loot spawn for gamble crates. --------- Signed-off-by: sleepyyapril <123355664+sleepyyapril@users.noreply.github.com> (cherry picked from commit 9272f65b64392f66a7cd4fd7c84bb152dc93b65a)
53 lines
2.1 KiB
C#
53 lines
2.1 KiB
C#
using Content.Server.DeviceLinking.Components;
|
|
using Content.Shared.Atmos.Monitor;
|
|
using Content.Shared.Atmos.Monitor.Components;
|
|
using Content.Shared.Atmos.Piping.Unary.Components;
|
|
using Content.Shared.DeviceLinking;
|
|
using Robust.Shared.Network;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.Atmos.Monitor.Components;
|
|
|
|
[RegisterComponent]
|
|
public sealed partial class AirAlarmComponent : Component
|
|
{
|
|
[DataField] public AirAlarmMode CurrentMode { get; set; } = AirAlarmMode.Filtering;
|
|
[DataField] public bool AutoMode { get; set; } = true;
|
|
|
|
// Remember to null this afterwards.
|
|
[ViewVariables] public IAirAlarmModeUpdate? CurrentModeUpdater { get; set; }
|
|
|
|
[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();
|
|
|
|
public bool CanSync = true;
|
|
|
|
/// <summary>
|
|
/// Previous alarm state for use with output ports.
|
|
/// </summary>
|
|
[DataField("state")]
|
|
public AtmosAlarmType State = AtmosAlarmType.Normal;
|
|
|
|
/// <summary>
|
|
/// The port that gets set to high while the alarm is in the danger state, and low when not.
|
|
/// </summary>
|
|
[DataField("dangerPort", customTypeSerializer: typeof(PrototypeIdSerializer<SourcePortPrototype>))]
|
|
public string DangerPort = "AirDanger";
|
|
|
|
/// <summary>
|
|
/// The port that gets set to high while the alarm is in the warning state, and low when not.
|
|
/// </summary>
|
|
[DataField("warningPort", customTypeSerializer: typeof(PrototypeIdSerializer<SourcePortPrototype>))]
|
|
public string WarningPort = "AirWarning";
|
|
|
|
/// <summary>
|
|
/// The port that gets set to high while the alarm is in the normal state, and low when not.
|
|
/// </summary>
|
|
[DataField("normalPort", customTypeSerializer: typeof(PrototypeIdSerializer<SourcePortPrototype>))]
|
|
public string NormalPort = "AirNormal";
|
|
}
|