#nullable enable using Content.Shared.GameObjects.EntitySystems; using Content.Shared.Interfaces.GameObjects.Components; using Robust.Shared.GameObjects; using Robust.Shared.Serialization.Manager.Attributes; using Robust.Shared.ViewVariables; namespace Content.Shared.GameObjects.Components.Movement { public interface IClimbable { } public abstract class SharedClimbableComponent : Component, IClimbable, IDragDropOn { public sealed override string Name => "Climbable"; /// /// The range from which this entity can be climbed. /// [ViewVariables] [DataField("range")] protected float Range = SharedInteractionSystem.InteractionRange / 1.4f; public virtual bool CanDragDropOn(DragDropEventArgs eventArgs) { return eventArgs.Dragged.HasComponent(); } public abstract bool DragDropOn(DragDropEventArgs eventArgs); } }