mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-17 14:21:13 +03:00
* 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
21 lines
581 B
C#
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);
|
|
}
|
|
}
|