* ECS dragdrop No more excuses. * AAAAAAAAAAAAAA * kry * events * aaaaaaaaaa * HUH * Fix stripping * aaaaaa * spoike * asease * fix table vaulting * ded * rebiew * aaaaaaaaaaaaa * drag * aeaeae * weh
28 lines
719 B
C#
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 EntityUid Dragged { get; }
|
|
|
|
/// <summary>
|
|
/// Entity that was drag dropped on.
|
|
/// </summary>
|
|
public EntityUid Target { get; }
|
|
|
|
public DragDropRequestEvent(EntityUid dragged, EntityUid target)
|
|
{
|
|
Dragged = dragged;
|
|
Target = target;
|
|
}
|
|
}
|
|
}
|