Files
tbd-station-14/Content.Shared/Tabletop/Events/TabletopDraggingPlayerChangedEvent.cs
2023-09-11 09:42:41 +10:00

26 lines
773 B
C#

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 NetEntity DraggedEntityUid;
public bool IsDragging;
public TabletopDraggingPlayerChangedEvent(NetEntity draggedEntityUid, bool isDragging)
{
DraggedEntityUid = draggedEntityUid;
IsDragging = isDragging;
}
}
}