Auto comp (#6416)
This commit is contained in:
@@ -11,8 +11,6 @@ namespace Content.Shared.Strip.Components
|
||||
{
|
||||
public abstract class SharedStrippableComponent : Component, IDraggable
|
||||
{
|
||||
public override string Name => "Strippable";
|
||||
|
||||
public bool CanBeStripped(EntityUid by)
|
||||
{
|
||||
return by != Owner
|
||||
|
||||
@@ -10,8 +10,6 @@ namespace Content.Shared.Strip.Components
|
||||
[RegisterComponent]
|
||||
public class SharedStrippingComponent : Component, IDragDropOn
|
||||
{
|
||||
public override string Name => "Stripping";
|
||||
|
||||
bool IDragDropOn.CanDragDropOn(DragDropEvent eventArgs)
|
||||
{
|
||||
if (!IoCManager.Resolve<IEntityManager>().TryGetComponent(eventArgs.Dragged, out SharedStrippableComponent? strippable)) return false;
|
||||
|
||||
Reference in New Issue
Block a user