HandsSystem now uses InputSystem. (#95)

Fixed TemperatureSystem namespace.
This commit is contained in:
Acruid
2018-08-18 15:28:02 -07:00
committed by GitHub
parent ce5760d46c
commit edb3eb5b2e
4 changed files with 91 additions and 43 deletions

View File

@@ -0,0 +1,22 @@
using SS14.Shared.GameObjects;
using SS14.Shared.GameObjects.Systems;
namespace Content.Server.GameObjects.EntitySystems
{
class TemperatureSystem : EntitySystem
{
public override void Initialize()
{
EntityQuery = new TypeEntityQuery(typeof(TemperatureComponent));
}
public override void Update(float frameTime)
{
foreach (var entity in RelevantEntities)
{
var comp = entity.GetComponent<TemperatureComponent>();
comp.OnUpdate(frameTime);
}
}
}
}