| 12345678910111213141516171819 |
- using Content.Shared.Alert;
- using Robust.Shared.GameStates;
- namespace Content.Server.Alert;
- internal sealed class ServerAlertsSystem : AlertsSystem
- {
- public override void Initialize()
- {
- base.Initialize();
- SubscribeLocalEvent<AlertsComponent, ComponentGetState>(OnGetState);
- }
- private void OnGetState(Entity<AlertsComponent> alerts, ref ComponentGetState args)
- {
- args.State = new AlertComponentState(alerts.Comp.Alerts);
- }
- }
|