2020-05-28 15:28:35 -05:00
|
|
|
using Content.Server.GameObjects.Components.Kitchen;
|
|
|
|
|
using Robust.Shared.GameObjects;
|
|
|
|
|
using Robust.Shared.GameObjects.Systems;
|
|
|
|
|
|
2020-07-06 14:27:03 -07:00
|
|
|
namespace Content.Server.Interfaces.GameObjects.Components.Interaction
|
2020-05-28 15:28:35 -05:00
|
|
|
{
|
|
|
|
|
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();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|