Deprecate IActionBlocker ChangeDirectionAttempt (#4851)

* Deprecate IActionBlocker ChangeDirectionAttempt

* Woops
This commit is contained in:
metalgearsloth
2021-10-13 13:14:30 +11:00
committed by GitHub
parent 31208c2636
commit 7fe7c46373
10 changed files with 22 additions and 44 deletions

View File

@@ -1,4 +1,5 @@
using Content.Shared.Buckle.Components;
using Content.Shared.Interaction.Events;
using Content.Shared.Movement;
using Content.Shared.Standing;
using Content.Shared.Throwing;
@@ -17,6 +18,13 @@ namespace Content.Shared.Buckle
SubscribeLocalEvent<SharedBuckleComponent, StandAttemptEvent>(HandleStand);
SubscribeLocalEvent<SharedBuckleComponent, ThrowPushbackAttemptEvent>(HandleThrowPushback);
SubscribeLocalEvent<SharedBuckleComponent, MovementAttemptEvent>(HandleMove);
SubscribeLocalEvent<SharedBuckleComponent, ChangeDirectionAttemptEvent>(OnBuckleChangeDirectionAttempt);
}
private void OnBuckleChangeDirectionAttempt(EntityUid uid, SharedBuckleComponent component, ChangeDirectionAttemptEvent args)
{
if (component.Buckled)
args.Cancel();
}
private void HandleMove(EntityUid uid, SharedBuckleComponent component, MovementAttemptEvent args)