24 lines
673 B
C#
24 lines
673 B
C#
|
|
using Content.Server.Chemistry.Components;
|
|||
|
|
using Content.Shared.Chemistry.EntitySystems;
|
|||
|
|
using JetBrains.Annotations;
|
|||
|
|
using Robust.Shared.GameObjects;
|
|||
|
|
|
|||
|
|
namespace Content.Server.Chemistry.EntitySystems
|
|||
|
|
{
|
|||
|
|
[UsedImplicitly]
|
|||
|
|
public class ReagentDispenserSystem : EntitySystem
|
|||
|
|
{
|
|||
|
|
public override void Initialize()
|
|||
|
|
{
|
|||
|
|
base.Initialize();
|
|||
|
|
|
|||
|
|
SubscribeLocalEvent<ReagentDispenserComponent, SolutionChangedEvent>(OnSolutionChange);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private void OnSolutionChange(EntityUid uid, ReagentDispenserComponent component, SolutionChangedEvent args)
|
|||
|
|
{
|
|||
|
|
component.UpdateUserInterface();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|