Remove superseded machine linking code (#18244)

This commit is contained in:
Leon Friedrich
2023-07-24 14:07:35 +12:00
committed by GitHub
parent a4063a5e33
commit f2bfdd8e17
44 changed files with 58 additions and 1259 deletions

View File

@@ -1,6 +1,5 @@
using System.Linq;
using Content.Server.Construction;
using Content.Server.MachineLinking.Components;
using Content.Server.Paper;
using Content.Server.Power.Components;
using Content.Server.Research.Systems;
@@ -9,6 +8,7 @@ using Content.Server.Xenoarchaeology.Equipment.Components;
using Content.Server.Xenoarchaeology.XenoArtifacts;
using Content.Server.Xenoarchaeology.XenoArtifacts.Events;
using Content.Shared.Audio;
using Content.Shared.DeviceLinking;
using Content.Shared.DeviceLinking.Events;
using Content.Shared.Popups;
using Content.Shared.Research.Components;
@@ -153,14 +153,14 @@ public sealed class ArtifactAnalyzerSystem : EntitySystem
private void OnMapInit(EntityUid uid, ArtifactAnalyzerComponent component, MapInitEvent args)
{
if (!TryComp<SignalReceiverComponent>(uid, out var receiver))
if (!TryComp<DeviceLinkSinkComponent>(uid, out var sink))
return;
foreach (var port in receiver.Inputs.Values.SelectMany(ports => ports))
foreach (var source in sink.LinkedSources)
{
if (!TryComp<AnalysisConsoleComponent>(port.Uid, out var analysis))
if (!TryComp<AnalysisConsoleComponent>(source, out var analysis))
continue;
component.Console = port.Uid;
component.Console = source;
analysis.AnalyzerEntity = uid;
return;
}