Add examine verb (#1508)

* Add examine verb

* Move examine verb to the client

* Remove unused imports
This commit is contained in:
DrSmugleaf
2020-07-28 08:33:38 +02:00
committed by GitHub
parent 89e0925c32
commit e2b02c69c9
2 changed files with 27 additions and 3 deletions

View File

@@ -0,0 +1,25 @@
using Content.Client.GameObjects.EntitySystems;
using Content.Shared.GameObjects;
using Robust.Shared.GameObjects.Systems;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.Localization;
namespace Content.Client.GlobalVerbs
{
[GlobalVerb]
public class ExamineVerb : GlobalVerb
{
public override bool RequireInteractionRange => false;
public override void GetData(IEntity user, IEntity target, VerbData data)
{
data.Visibility = VerbVisibility.Visible;
data.Text = Loc.GetString("Examine");
}
public override void Activate(IEntity user, IEntity target)
{
EntitySystem.Get<ExamineSystem>().DoExamine(target);
}
}
}