DragDropRequestEvent.cs 719 B

123456789101112131415161718192021222324252627
  1. using Robust.Shared.Serialization;
  2. namespace Content.Shared.DragDrop
  3. {
  4. /// <summary>
  5. /// Raised on the client to the server requesting a drag-drop.
  6. /// </summary>
  7. [Serializable, NetSerializable]
  8. public sealed class DragDropRequestEvent : EntityEventArgs
  9. {
  10. /// <summary>
  11. /// Entity that was dragged and dropped.
  12. /// </summary>
  13. public NetEntity Dragged { get; }
  14. /// <summary>
  15. /// Entity that was drag dropped on.
  16. /// </summary>
  17. public NetEntity Target { get; }
  18. public DragDropRequestEvent(NetEntity dragged, NetEntity target)
  19. {
  20. Dragged = dragged;
  21. Target = target;
  22. }
  23. }
  24. }