CatStation/Content.Shared/Spider/SharedSpiderSystem.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

20 lines
523 B
C#

using Content.Shared.Actions;
namespace Content.Shared.Spider;
public abstract partial class SharedSpiderSystem : EntitySystem
{
[Dependency] private SharedActionsSystem _action = default!;
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<SpiderComponent, MapInitEvent>(OnInit);
}
private void OnInit(EntityUid uid, SpiderComponent component, MapInitEvent args)
{
_action.AddAction(uid, ref component.Action, component.WebAction, uid);
}
}