25 lines
678 B
C#
25 lines
678 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 ChemMasterSystem : EntitySystem
|
|||
|
|
{
|
|||
|
|
public override void Initialize()
|
|||
|
|
{
|
|||
|
|
base.Initialize();
|
|||
|
|
|
|||
|
|
SubscribeLocalEvent<ChemMasterComponent, SolutionChangedEvent>(OnSolutionChange);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private void OnSolutionChange(EntityUid uid, ChemMasterComponent component,
|
|||
|
|
SolutionChangedEvent solutionChanged)
|
|||
|
|
{
|
|||
|
|
component.UpdateUserInterface();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|