Add HideContextMenu component (#2555)

This commit is contained in:
DrSmugleaf
2020-11-18 08:16:56 +01:00
committed by GitHub
parent bab326a9e2
commit 0790ad72d2
4 changed files with 7 additions and 14 deletions

View File

@@ -2,12 +2,12 @@
using Robust.Shared.GameObjects;
using Robust.Shared.Interfaces.GameObjects;
namespace Content.Shared.GameObjects.Components.Drag
namespace Content.Shared.GameObjects.Components.Context
{
[RegisterComponent]
public class DragShadowComponent : Component, IShowContextMenu
public class HideContextMenuComponent : Component, IShowContextMenu
{
public override string Name => "DragShadow";
public override string Name => "HideContextMenu";
public bool ShowContextMenu(IEntity examiner)
{

View File

@@ -1,16 +1,9 @@
using Content.Shared.GameObjects.Verbs;
using Robust.Shared.GameObjects;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.GameObjects;
namespace Content.Shared.GameObjects.Components.Pointing
{
public class SharedPointingArrowComponent : Component, IShowContextMenu
public class SharedPointingArrowComponent : Component
{
public sealed override string Name => "PointingArrow";
public bool ShowContextMenu(IEntity examiner)
{
return false;
}
}
}