| 123456789101112131415161718192021222324 |
- using Content.Shared.Atmos.Components;
- namespace Content.Shared.Atmos.Consoles;
- public abstract partial class SharedAtmosAlertsComputerSystem : EntitySystem
- {
- public override void Initialize()
- {
- base.Initialize();
- SubscribeLocalEvent<AtmosAlertsComputerComponent, AtmosAlertsComputerDeviceSilencedMessage>(OnDeviceSilencedMessage);
- }
- private void OnDeviceSilencedMessage(EntityUid uid, AtmosAlertsComputerComponent component, AtmosAlertsComputerDeviceSilencedMessage args)
- {
- if (args.SilenceDevice)
- component.SilencedDevices.Add(args.AtmosDevice);
- else
- component.SilencedDevices.Remove(args.AtmosDevice);
- Dirty(uid, component);
- }
- }
|