diff --git a/Content.Client/GlobalVerbs/ExamineVerb.cs b/Content.Client/GlobalVerbs/ExamineVerb.cs new file mode 100644 index 0000000000..33b8f38027 --- /dev/null +++ b/Content.Client/GlobalVerbs/ExamineVerb.cs @@ -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().DoExamine(target); + } + } +} diff --git a/Content.Server/GameObjects/EntitySystems/Click/ExamineSystem.cs b/Content.Server/GameObjects/EntitySystems/Click/ExamineSystem.cs index 1babbc6ee6..609328c29a 100644 --- a/Content.Server/GameObjects/EntitySystems/Click/ExamineSystem.cs +++ b/Content.Server/GameObjects/EntitySystems/Click/ExamineSystem.cs @@ -1,9 +1,7 @@ -using Content.Server.Utility; -using Content.Shared.GameObjects.EntitySystemMessages; +using Content.Shared.GameObjects.EntitySystemMessages; using Content.Shared.GameObjects.EntitySystems; using Robust.Server.Interfaces.Player; using Robust.Shared.GameObjects; -using Robust.Shared.GameObjects.Systems; using Robust.Shared.Interfaces.GameObjects; using Robust.Shared.IoC; using Robust.Shared.Maths; @@ -16,6 +14,7 @@ namespace Content.Server.GameObjects.EntitySystems.Click /// /// Returns a status examine value for components appended to the end of the description of the entity /// + /// The message to append to which will be displayed. /// Whether the examiner is within the 'Details' range, allowing you to show information logically only availabe when close to the examined entity. void Examine(FormattedMessage message, bool inDetailsRange); }