Files
wwdpublic/Content.Server/Alert/ServerAlertsSystem.cs
SlamBamActionman e3259c077e Add a Walking alert (#32954)
* Initial commit

* Review feedback changes

* ProtoId

* TempCommit

* First attempt to have client alerts

* Review changes

(cherry picked from commit 1e368ae30076606501332f34ab786c14e25c477a)
2025-07-20 14:17:46 +10:00

20 lines
476 B
C#

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);
}
}