fish-station/Content.Shared/_Sunrise/Boss/Systems/SharedHellSpawnTentacleSystem.cs
pacable 8f2445ea94
Адское Отродье - Босс для утилей (#1525)
Signed-off-by: pacable <igor.mamaev1@gmail.com>
2025-03-10 02:33:48 +03:00

30 lines
1,014 B
C#

using Content.Shared._Sunrise.Boss.Components;
using Content.Shared.Actions;
using Robust.Shared.Prototypes;
namespace Content.Shared._Sunrise.Boss.Systems;
/// <inheritdoc/>
public abstract class SharedHellSpawnTentacleSystem : EntitySystem
{
[Dependency] private readonly SharedActionsSystem _actions = default!;
// Статические значения
public static EntProtoId GrabRightEntityId = "HellspawnGrabRight";
public static EntProtoId GrabLeftEntityId = "HellspawnGrabLeft";
/// <inheritdoc/>
public override void Initialize()
{
base.Initialize();
SubscribeLocalEvent<HellSpawnTentacleComponent, ComponentInit>(OnTentacleInit);
}
private void OnTentacleInit(EntityUid uid, HellSpawnTentacleComponent component, ComponentInit args)
{
_actions.AddAction(uid, ref component.LeftGrabActionEntity, component.LeftGrabAction);
_actions.AddAction(uid, ref component.RightGrabActionEntity, component.RightGrabAction);
}
}