* Drag changes * Higlights only show near cursor * Don't highlight un-droppable entities * Fixes invalid highlights issue * Also the scanner * 2 months fix * Address reviews Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
23 lines
566 B
C#
23 lines
566 B
C#
#nullable enable
|
|
using Content.Shared.GameObjects.Components.Body;
|
|
using Content.Shared.Interfaces.GameObjects.Components;
|
|
using Robust.Shared.GameObjects;
|
|
|
|
namespace Content.Client.GameObjects.Components.Body
|
|
{
|
|
[RegisterComponent]
|
|
[ComponentReference(typeof(IBody))]
|
|
public class BodyComponent : SharedBodyComponent, IDraggable
|
|
{
|
|
bool IDraggable.CanStartDrag(StartDragDropEventArgs args)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
public bool CanDrop(CanDropEventArgs args)
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
}
|