namespace Content.Shared.DragDrop;
///
/// Event that gets send to the target of a drag drop action
/// Mark this event as handled to specify that the entity can be dropped on
/// and set CanDrop to true or false, depending on whether dropping the entity onto the target is actually possible.
///
public sealed class CanDragDropOnEvent : HandledEntityEventArgs
{
///
/// Entity doing the drag and drop.
///
public EntityUid User { get; }
///
/// Entity that is being dragged.
///
public EntityUid Dragged { get; }
///
/// Entity that is being dropped on.
///
public EntityUid Target { get; }
///
/// If the dragged entity can be dropped on the target.
///
public bool CanDrop { get; set; } = false;
public CanDragDropOnEvent(EntityUid user, EntityUid dragged, EntityUid target)
{
User = user;
Dragged = dragged;
Target = target;
}
}