| 12345678910111213141516171819202122232425262728 |
- // SPDX-FileCopyrightText: 2024 gluesniffler <159397573+gluesniffler@users.noreply.github.com>
- // SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
- //
- // SPDX-License-Identifier: AGPL-3.0-or-later
- using Content.Shared.Actions;
- namespace Content.Shared._Shitmed.GoliathTentacle;
- internal sealed class GoliathTentacleSystem : EntitySystem
- {
- [Dependency] private readonly SharedActionsSystem _actionsSystem = default!;
- public override void Initialize()
- {
- SubscribeLocalEvent<GoliathTentacleComponent, ComponentStartup>(OnStartup);
- SubscribeLocalEvent<GoliathTentacleComponent, ComponentShutdown>(OnShutdown);
- }
- private void OnStartup(EntityUid uid, GoliathTentacleComponent component, ComponentStartup args)
- {
- _actionsSystem.AddAction(uid, ref component.ActionEntity, component.Action);
- }
- private void OnShutdown(EntityUid uid, GoliathTentacleComponent component, ComponentShutdown args)
- {
- _actionsSystem.RemoveAction(uid, component.ActionEntity);
- }
- }
|