2020-07-06 14:27:03 -07:00
|
|
|
using System;
|
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
using Robust.Shared.Map;
|
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Shared.DragDrop
|
2020-07-06 14:27:03 -07:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Requests a drag / drop interaction to be performed
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable, NetSerializable]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class DragDropRequestEvent : EntityEventArgs
|
2020-07-06 14:27:03 -07:00
|
|
|
{
|
2021-05-22 21:06:40 -07:00
|
|
|
/// <summary>
|
|
|
|
|
/// Location that the entity was dropped.
|
|
|
|
|
/// </summary>
|
2020-09-06 16:11:53 +02:00
|
|
|
public EntityCoordinates DropLocation { get; }
|
2021-05-22 21:06:40 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Entity that was dragged and dropped.
|
|
|
|
|
/// </summary>
|
2020-07-06 14:27:03 -07:00
|
|
|
public EntityUid Dropped { get; }
|
2021-05-22 21:06:40 -07:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Entity that was drag dropped on.
|
|
|
|
|
/// </summary>
|
2020-07-06 14:27:03 -07:00
|
|
|
public EntityUid Target { get; }
|
|
|
|
|
|
2021-05-22 21:06:40 -07:00
|
|
|
public DragDropRequestEvent(EntityCoordinates dropLocation, EntityUid dropped, EntityUid target)
|
2020-07-06 14:27:03 -07:00
|
|
|
{
|
|
|
|
|
DropLocation = dropLocation;
|
|
|
|
|
Dropped = dropped;
|
|
|
|
|
Target = target;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|