Examine System (#65)

* Examine System

* Adds some relevant comments
This commit is contained in:
clusterfack
2018-05-09 09:34:26 -05:00
committed by Pieter-Jan Briers
parent 61a1e769d7
commit 3915b735ae
14 changed files with 148 additions and 5 deletions

View File

@@ -3,13 +3,14 @@ using SS14.Shared.Interfaces.GameObjects;
using SS14.Shared.Utility;
using YamlDotNet.RepresentationModel;
using SS14.Server.GameObjects;
using Content.Server.GameObjects.EntitySystems;
namespace Content.Server.GameObjects.Components.Interactable.Tools
{
/// <summary>
/// Tool used to weld metal together, light things on fire, or melt into constituent parts
/// </summary>
class WelderComponent : ToolComponent, EntitySystems.IUse
class WelderComponent : ToolComponent, EntitySystems.IUse, EntitySystems.IExamine
{
SpriteComponent spriteComponent;
@@ -138,5 +139,14 @@ namespace Content.Server.GameObjects.Components.Interactable.Tools
return false;
}
}
string IExamine.Examine()
{
if(Activated)
{
return "The welding tool is currently lit";
}
return null;
}
}
}