mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
19 lines
485 B
C#
19 lines
485 B
C#
using Content.Shared.Actions.Events;
|
|
|
|
namespace Content.Shared._DV.Actions;
|
|
|
|
public sealed class DeleteOnPerformedActionSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<DeleteOnPerformedActionComponent, ActionPerformedEvent>(OnActionPerformed);
|
|
}
|
|
|
|
private void OnActionPerformed(Entity<DeleteOnPerformedActionComponent> ent, ref ActionPerformedEvent args)
|
|
{
|
|
PredictedQueueDel(ent);
|
|
}
|
|
}
|