mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-02-15 04:50:55 +01:00
20 lines
459 B
C#
20 lines
459 B
C#
using Content.Shared.Alert;
|
|
using Robust.Server.GameObjects;
|
|
|
|
namespace Content.Server.Alert;
|
|
|
|
internal sealed class ServerAlertsSystem : AlertsSystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<AlertsComponent, PlayerAttachedEvent>(OnPlayerAttached);
|
|
}
|
|
|
|
private void OnPlayerAttached(EntityUid uid, AlertsComponent component, PlayerAttachedEvent args)
|
|
{
|
|
Dirty(component);
|
|
}
|
|
}
|