// SPDX-FileCopyrightText: 2025 GoobBot // SPDX-FileCopyrightText: 2025 deltanedas <39013340+deltanedas@users.noreply.github.com> // SPDX-FileCopyrightText: 2025 deltanedas <@deltanedas:kde.org> // // SPDX-License-Identifier: AGPL-3.0-or-later using Content.Shared.DeviceLinking; using Content.Shared.DeviceLinking.Events; using Content.Shared.Fax; using Content.Shared.Fax.Components; using Robust.Shared.Prototypes; namespace Content.Server._Goobstation.Fax; /// /// Handles signals for automated fax machines. /// public sealed class FaxSignalSystem : EntitySystem { public static readonly ProtoId CopyPort = "FaxCopy"; public override void Initialize() { base.Initialize(); SubscribeLocalEvent(OnSignalReceived); } private void OnSignalReceived(Entity ent, ref SignalReceivedEvent args) { if (args.Port == CopyPort) RaiseLocalEvent(ent, new FaxCopyMessage()); } }