2020-07-06 14:27:03 -07:00
|
|
|
using System;
|
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
using Robust.Shared.Map;
|
|
|
|
|
using Robust.Shared.Serialization;
|
|
|
|
|
|
|
|
|
|
namespace Content.Shared.GameObjects.EntitySystemMessages
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Requests a drag / drop interaction to be performed
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable, NetSerializable]
|
|
|
|
|
public class DragDropMessage : EntitySystemMessage
|
|
|
|
|
{
|
2020-09-06 16:11:53 +02:00
|
|
|
public EntityCoordinates DropLocation { get; }
|
2020-07-06 14:27:03 -07:00
|
|
|
public EntityUid Dropped { get; }
|
|
|
|
|
public EntityUid Target { get; }
|
|
|
|
|
|
2020-09-06 16:11:53 +02:00
|
|
|
public DragDropMessage(EntityCoordinates dropLocation, EntityUid dropped, EntityUid target)
|
2020-07-06 14:27:03 -07:00
|
|
|
{
|
|
|
|
|
DropLocation = dropLocation;
|
|
|
|
|
Dropped = dropped;
|
|
|
|
|
Target = target;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|