// SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com> // SPDX-FileCopyrightText: 2025 GoobBot // SPDX-FileCopyrightText: 2025 Misandry // SPDX-FileCopyrightText: 2025 Solstice // SPDX-FileCopyrightText: 2025 SolsticeOfTheWinter // SPDX-FileCopyrightText: 2025 gus // SPDX-FileCopyrightText: 2025 pheenty // // SPDX-License-Identifier: AGPL-3.0-or-later using Content.Shared._Goobstation.Devil; using Content.Shared._Goobstation.Flashbang; using Content.Shared.Inventory; using Content.Shared.Inventory.Events; namespace Content.Shared._Goobstation.Inventory; public partial class GoobInventorySystem { [Dependency] private readonly InventorySystem _inventorySystem = default!; public void InitializeRelays() { base.Initialize(); SubscribeLocalEvent(RelayInventoryEvent); SubscribeLocalEvent(RelayInventoryEvent); SubscribeLocalEvent>(RefRelayInventoryEvent); SubscribeLocalEvent>(RefRelayInventoryEvent); } private void RefRelayInventoryEvent(EntityUid uid, InventoryComponent component, ref T args) where T : IInventoryRelayEvent { _inventorySystem.RelayEvent((uid, component), ref args); } private void RelayInventoryEvent(EntityUid uid, InventoryComponent component, T args) where T : IInventoryRelayEvent { _inventorySystem.RelayEvent((uid, component), args); } }