using Robust.Shared.Serialization;

namespace Content.Shared.Tabletop.Events
{
    /// <summary>
    /// Event to tell other clients that we are dragging this item. Necessery to handle multiple users
    /// trying to move a single item at the same time.
    /// </summary>
    [Serializable, NetSerializable]
    public sealed class TabletopDraggingPlayerChangedEvent : EntityEventArgs
    {
        /// <summary>
        /// The UID of the entity being dragged.
        /// </summary>
        public EntityUid DraggedEntityUid;

        public bool IsDragging;

        public TabletopDraggingPlayerChangedEvent(EntityUid draggedEntityUid, bool isDragging)
        {
            DraggedEntityUid = draggedEntityUid;
            IsDragging = isDragging;
        }
    }
}
