TabletopDraggingPlayerChangedEvent.cs 773 B

12345678910111213141516171819202122232425
  1. using Robust.Shared.Serialization;
  2. namespace Content.Shared.Tabletop.Events
  3. {
  4. /// <summary>
  5. /// Event to tell other clients that we are dragging this item. Necessery to handle multiple users
  6. /// trying to move a single item at the same time.
  7. /// </summary>
  8. [Serializable, NetSerializable]
  9. public sealed class TabletopDraggingPlayerChangedEvent : EntityEventArgs
  10. {
  11. /// <summary>
  12. /// The UID of the entity being dragged.
  13. /// </summary>
  14. public NetEntity DraggedEntityUid;
  15. public bool IsDragging;
  16. public TabletopDraggingPlayerChangedEvent(NetEntity draggedEntityUid, bool isDragging)
  17. {
  18. DraggedEntityUid = draggedEntityUid;
  19. IsDragging = isDragging;
  20. }
  21. }
  22. }