Files
crystall-punk-14/Content.Server/Alert/ServerAlertsSystem.cs

20 lines
476 B
C#
Raw Normal View History

2022-01-05 00:19:23 -08:00
using Content.Shared.Alert;
using Robust.Shared.GameStates;
2022-01-05 00:19:23 -08:00
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);
}
}