ActionAttemptEvent.cs 307 B

12345678
  1. namespace Content.Shared.Actions.Events;
  2. /// <summary>
  3. /// Raised before an action is used and can be cancelled to prevent it.
  4. /// Allowed to have side effects like modifying the action component.
  5. /// </summary>
  6. [ByRefEvent]
  7. public record struct ActionAttemptEvent(EntityUid User, bool Cancelled = false);