* Chem master * Drone support for handhelds * Vending machines, scanners * Cloners, R&D computers * make research a little less sussy * Unfuck wires * PA control computer * Unfuck merge * Clean up git gore for good * Disposals * Microwaves * paper * Magic mirror * More vendors for drones * Solar computer whitelist * EFR review updates
33 lines
898 B
C#
33 lines
898 B
C#
using Content.Server.Chemistry.EntitySystems;
|
|
using Content.Server.Kitchen.Components;
|
|
using Content.Server.UserInterface;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Content.Server.Kitchen.EntitySystems
|
|
{
|
|
[UsedImplicitly]
|
|
internal sealed class MicrowaveSystem : EntitySystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<MicrowaveComponent, SolutionChangedEvent>(OnSolutionChange);
|
|
}
|
|
|
|
private void OnSolutionChange(EntityUid uid, MicrowaveComponent component, SolutionChangedEvent args)
|
|
{
|
|
component.DirtyUi();
|
|
}
|
|
|
|
public override void Update(float frameTime)
|
|
{
|
|
base.Update(frameTime);
|
|
foreach (var comp in EntityManager.EntityQuery<MicrowaveComponent>())
|
|
{
|
|
comp.OnUpdate();
|
|
}
|
|
}
|
|
}
|
|
}
|