2020-10-30 01:16:26 +01:00
|
|
|
|
#nullable enable
|
2020-10-10 15:25:13 +02:00
|
|
|
|
using Content.Shared.GameObjects.Components.Body;
|
2020-10-14 15:24:07 +02:00
|
|
|
|
using Content.Shared.Interfaces.GameObjects.Components;
|
2020-10-10 15:25:13 +02:00
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.GameObjects.Components.Body
|
|
|
|
|
|
{
|
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
|
[ComponentReference(typeof(IBody))]
|
2020-10-14 15:24:07 +02:00
|
|
|
|
public class BodyComponent : SharedBodyComponent, IDraggable
|
2020-10-10 15:25:13 +02:00
|
|
|
|
{
|
2021-01-11 22:14:01 +11:00
|
|
|
|
bool IDraggable.CanStartDrag(StartDragDropEventArgs 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-02-04 17:44:49 +01:00
|
|
|
|
bool IDraggable.CanDrop(CanDropEventArgs args)
|
2021-01-11 22:14:01 +11:00
|
|
|
|
{
|
|
|
|
|
|
return true;
|
2020-10-10 15:25:13 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|