Add examine verb (#1508)
* Add examine verb * Move examine verb to the client * Remove unused imports
This commit is contained in:
25
Content.Client/GlobalVerbs/ExamineVerb.cs
Normal file
25
Content.Client/GlobalVerbs/ExamineVerb.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user