21 lines
524 B
C#
21 lines
524 B
C#
using Content.Shared.Actions;
|
|
|
|
namespace Content.Shared.Spider;
|
|
|
|
public abstract class SharedSpiderSystem : EntitySystem
|
|
{
|
|
[Dependency] private readonly 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);
|
|
}
|
|
}
|