// SPDX-FileCopyrightText: 2025 GoobBot // SPDX-FileCopyrightText: 2025 deltanedas <@deltanedas:kde.org> // // SPDX-License-Identifier: AGPL-3.0-or-later using Content.Shared.DeviceLinking.Events; using Content.Shared.Construction.Components; using Content.Shared.DeviceLinking; using Robust.Shared.Prototypes; namespace Content.Server._Goobstation.Construction; public sealed class FlatpackSignalSystem : EntitySystem { public static readonly ProtoId OnPort = "On"; public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnSignalReceived); } private void OnSignalReceived(Entity ent, ref SignalReceivedEvent args) { if (args.Port != OnPort) return; // supercode has no API so we have to do this var ev = new FlatpackCreatorStartPackBuiMessage(); RaiseLocalEvent(ent, ev); } }