Files
tbd-station-14/Content.Shared/DragDrop/DragDropRequestEvent.cs
2023-09-11 09:42:41 +10:00

28 lines
719 B
C#

using Robust.Shared.Serialization;
namespace Content.Shared.DragDrop
{
/// <summary>
/// Raised on the client to the server requesting a drag-drop.
/// </summary>
[Serializable, NetSerializable]
public sealed class DragDropRequestEvent : EntityEventArgs
{
/// <summary>
/// Entity that was dragged and dropped.
/// </summary>
public NetEntity Dragged { get; }
/// <summary>
/// Entity that was drag dropped on.
/// </summary>
public NetEntity Target { get; }
public DragDropRequestEvent(NetEntity dragged, NetEntity target)
{
Dragged = dragged;
Target = target;
}
}
}