DroppedEvent.cs 518 B

1234567891011121314151617181920
  1. using JetBrains.Annotations;
  2. namespace Content.Shared.Interaction.Events;
  3. /// <summary>
  4. /// Raised when an entity is dropped from a users hands, or directly removed from a users inventory, but not when moved between hands & inventory.
  5. /// </summary>
  6. [PublicAPI]
  7. public sealed class DroppedEvent : HandledEntityEventArgs
  8. {
  9. /// <summary>
  10. /// Entity that dropped the item.
  11. /// </summary>
  12. public EntityUid User { get; }
  13. public DroppedEvent(EntityUid user)
  14. {
  15. User = user;
  16. }
  17. }