2021-06-09 22:19:39 +02:00
|
|
|
|
using Content.Shared.Body.Components;
|
|
|
|
|
|
using Content.Shared.DragDrop;
|
2020-10-10 15:25:13 +02:00
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
|
namespace Content.Client.Body.Components
|
2020-10-10 15:25:13 +02:00
|
|
|
|
{
|
|
|
|
|
|
[RegisterComponent]
|
2021-06-16 16:44:38 +02:00
|
|
|
|
[ComponentReference(typeof(SharedBodyComponent))]
|
2022-02-16 00:23:23 -07:00
|
|
|
|
public sealed class BodyComponent : SharedBodyComponent, IDraggable
|
2020-10-10 15:25:13 +02:00
|
|
|
|
{
|
2021-05-22 21:06:40 -07:00
|
|
|
|
bool IDraggable.CanStartDrag(StartDragDropEvent args)
|
2020-10-10 15:25:13 +02:00
|
|
|
|
{
|
2021-01-11 22:14:01 +11:00
|
|
|
|
return true;
|
|
|
|
|
|
}
|
2020-10-10 15:25:13 +02:00
|
|
|
|
|
2021-05-22 21:06:40 -07:00
|
|
|
|
bool IDraggable.CanDrop(CanDropEvent args)
|
2021-01-11 22:14:01 +11:00
|
|
|
|
{
|
|
|
|
|
|
return true;
|
2020-10-10 15:25:13 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|