2021-06-09 22:19:39 +02:00
|
|
|
using Content.Server.UserInterface;
|
|
|
|
|
using Content.Shared.DragDrop;
|
|
|
|
|
using Content.Shared.MedicalScanner;
|
2019-09-18 20:24:55 +02:00
|
|
|
using Robust.Server.GameObjects;
|
2021-03-01 15:24:46 -08:00
|
|
|
using Robust.Shared.Containers;
|
2019-09-18 20:24:55 +02:00
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.Medical.Components
|
2019-09-18 20:24:55 +02:00
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2020-10-14 15:24:07 +02:00
|
|
|
[ComponentReference(typeof(SharedMedicalScannerComponent))]
|
2022-03-07 21:45:52 -06:00
|
|
|
public sealed class MedicalScannerComponent : SharedMedicalScannerComponent
|
2019-09-18 20:24:55 +02:00
|
|
|
{
|
2022-03-07 21:45:52 -06:00
|
|
|
public ContainerSlot BodyContainer = default!;
|
|
|
|
|
public BoundUserInterface? UserInterface => Owner.GetUIOrNull(MedicalScannerUiKey.Key);
|
2020-09-02 06:07:54 -04:00
|
|
|
|
2022-03-07 21:45:52 -06:00
|
|
|
// ECS this out!, when DragDropSystem and InteractionSystem refactored
|
2021-05-22 21:06:40 -07:00
|
|
|
public override bool DragDropOn(DragDropEvent eventArgs)
|
2020-09-02 06:07:54 -04:00
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2019-09-18 20:24:55 +02:00
|
|
|
}
|
|
|
|
|
}
|