alert sounds from alarmables, sensor data ctor

This commit is contained in:
vulppine
2022-08-18 02:37:12 -07:00
parent 1c651f051f
commit 068527b13c
7 changed files with 78 additions and 24 deletions

View File

@@ -1,4 +1,5 @@
using Content.Shared.Atmos.Monitor;
using Robust.Shared.Audio;
namespace Content.Server.Atmos.Monitor.Components
{
@@ -30,6 +31,12 @@ namespace Content.Server.Atmos.Monitor.Components
[ViewVariables] public AtmosMonitorAlarmType HighestNetworkState = AtmosMonitorAlarmType.Normal;
[ViewVariables] public bool IgnoreAlarms { get; set; } = false;
[DataField("alarmSound")]
public SoundSpecifier AlarmSound { get; set; } = new SoundPathSpecifier("/Audio/Machines/alarm.ogg");
[DataField("alarmVolume")]
public float AlarmVolume { get; set; } = -10;
/// <summary>
/// List of prototypes that this alarmable can be
/// alarmed by - must be a prototype with AtmosMonitor