renames AtmosMonitorAlarmEvent to AtmosAlarmEvent

This commit is contained in:
vulppine
2022-08-23 10:42:03 -07:00
parent 0e43f73ba1
commit df25715ed3
7 changed files with 28 additions and 30 deletions

View File

@@ -164,7 +164,7 @@ namespace Content.Server.Atmos.Monitor.Systems
alarmable.LastAlarmState = type;
UpdateAppearance(uid, type);
PlayAlertSound(uid, type, alarmable);
RaiseLocalEvent(uid, new AtmosMonitorAlarmEvent(type, type), true);
RaiseLocalEvent(uid, new AtmosAlarmEvent(type), true);
}
public void SyncAlertsToNetwork(EntityUid uid, string? address = null, AtmosAlarmableComponent? alarmable = null, TagComponent? tags = null)
@@ -294,4 +294,14 @@ namespace Content.Server.Atmos.Monitor.Systems
_appearance.SetData(uid, AtmosMonitorVisuals.AlarmType, alarm);
}
}
public sealed class AtmosAlarmEvent : EntityEventArgs
{
public AtmosMonitorAlarmType AlarmType { get; }
public AtmosAlarmEvent(AtmosMonitorAlarmType netMax)
{
AlarmType = netMax;
}
}
}