Sweeping changes/improvements to the microwave. (#997)

Co-authored-by: FL-OZ <anotherscuffed@gmail.com>
Co-authored-by: Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
This commit is contained in:
FL-OZ
2020-05-28 15:28:35 -05:00
committed by GitHub
parent 836953370d
commit 5b36a0d704
8 changed files with 392 additions and 356 deletions

View File

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