2022-11-20 01:49:37 -05:00
|
|
|
|
using Content.Client.Implants.UI;
|
|
|
|
|
|
using Content.Client.Items;
|
|
|
|
|
|
using Content.Shared.Implants;
|
|
|
|
|
|
using Content.Shared.Implants.Components;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Content.Client.Implants;
|
|
|
|
|
|
|
|
|
|
|
|
public sealed class ImplanterSystem : SharedImplanterSystem
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void Initialize()
|
|
|
|
|
|
{
|
|
|
|
|
|
base.Initialize();
|
|
|
|
|
|
|
2023-09-28 16:20:29 -07:00
|
|
|
|
SubscribeLocalEvent<ImplanterComponent, AfterAutoHandleStateEvent>(OnHandleImplanterState);
|
2024-01-12 01:14:13 +01:00
|
|
|
|
Subs.ItemStatus<ImplanterComponent>(ent => new ImplanterStatusControl(ent));
|
2022-11-20 01:49:37 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
2023-09-28 16:20:29 -07:00
|
|
|
|
private void OnHandleImplanterState(EntityUid uid, ImplanterComponent component, ref AfterAutoHandleStateEvent args)
|
2022-11-20 01:49:37 -05:00
|
|
|
|
{
|
|
|
|
|
|
component.UiUpdateNeeded = true;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|