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

@@ -1,4 +1,5 @@
using SS14.Server.GameObjects;
using Content.Server.GameObjects.EntitySystems;
using SS14.Server.GameObjects;
using SS14.Shared.GameObjects;
using SS14.Shared.Interfaces.GameObjects;
using SS14.Shared.IoC;
@@ -12,7 +13,7 @@ namespace Content.Server.GameObjects.Components.Power
/// <summary>
/// Component that requires power to function
/// </summary>
public class PowerDeviceComponent : Component
public class PowerDeviceComponent : Component, EntitySystems.IExamine
{
public override string Name => "PowerDevice";
@@ -134,6 +135,15 @@ namespace Content.Server.GameObjects.Components.Power
}
}
string IExamine.Examine()
{
if(!Powered)
{
return "The device is not powered";
}
return null;
}
private void UpdateLoad(float value)
{
var oldLoad = _load;