Removes all dependencies on engine component events. (#4199)
This commit is contained in:
16
Content.Client/Alerts/ClientAlertsSystem.cs
Normal file
16
Content.Client/Alerts/ClientAlertsSystem.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using Robust.Client.GameObjects;
|
||||
using Robust.Shared.GameObjects;
|
||||
|
||||
namespace Content.Client.Alerts
|
||||
{
|
||||
internal class ClientAlertsSystem : EntitySystem
|
||||
{
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
|
||||
SubscribeLocalEvent<ClientAlertsComponent, PlayerAttachedEvent>((_, component, _) => component.PlayerAttached());
|
||||
SubscribeLocalEvent<ClientAlertsComponent, PlayerDetachedEvent>((_, component, _) => component.PlayerDetached());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user