UpdateCanMoveEvent.cs 439 B

1234567891011121314151617
  1. using Content.Shared.Movement.Components;
  2. namespace Content.Shared.Movement.Events;
  3. /// <summary>
  4. /// Raised whenever <see cref="IMoverComponent.CanMove"/> needs to be updated. Cancel this event to prevent a
  5. /// mover from moving.
  6. /// </summary>
  7. public sealed class UpdateCanMoveEvent : CancellableEntityEventArgs
  8. {
  9. public UpdateCanMoveEvent(EntityUid uid)
  10. {
  11. Uid = uid;
  12. }
  13. public EntityUid Uid { get; }
  14. }