CatStation/Content.Server/Implants/AutoImplantSystem.cs
Pieter-Jan Briers 5168b5f3d4
IoC source gen compatibility (#43863)
* IoC source gen compatibility

Can be merged before or after https://github.com/space-wizards/RobustToolbox/pull/6549 doesn't really matter.

* Missed a spot
2026-05-09 03:29:58 +00:00

21 lines
581 B
C#

using Content.Server.Implants.Components;
namespace Content.Server.Implants;
public sealed partial class AutoImplantSystem : EntitySystem
{
[Dependency] private SubdermalImplantSystem _subdermalImplant = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<AutoImplantComponent, MapInitEvent>(OnMapInit);
}
private void OnMapInit(EntityUid uid, AutoImplantComponent comp, MapInitEvent args)
{
_subdermalImplant.AddImplants(uid, comp.Implants);
RemComp<AutoImplantComponent>(uid);
}
}