2023-01-23 01:50:05 +03:00
|
|
|
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();
|
|
|
|
|
|
2023-09-23 04:49:39 -04:00
|
|
|
SubscribeLocalEvent<SpiderComponent, MapInitEvent>(OnInit);
|
2023-01-23 01:50:05 +03:00
|
|
|
}
|
|
|
|
|
|
2023-09-23 04:49:39 -04:00
|
|
|
private void OnInit(EntityUid uid, SpiderComponent component, MapInitEvent args)
|
2023-01-23 01:50:05 +03:00
|
|
|
{
|
2023-09-23 04:49:39 -04:00
|
|
|
_action.AddAction(uid, ref component.Action, component.WebAction, uid);
|
2023-01-23 01:50:05 +03:00
|
|
|
}
|
|
|
|
|
}
|