mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +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
20 lines
523 B
C#
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);
|
|
}
|
|
}
|