Machine Linking Overhaul (#7160)
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Content.Server.MachineLinking.Models;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
@@ -11,9 +10,14 @@ namespace Content.Server.MachineLinking.Components
|
||||
public sealed class SignalReceiverComponent : Component
|
||||
{
|
||||
[DataField("inputs")]
|
||||
private List<SignalPort> _inputs = new();
|
||||
private Dictionary<string, List<PortIdentifier>> _inputs = new();
|
||||
|
||||
public void AddPort(string name)
|
||||
{
|
||||
_inputs.Add(name, new());
|
||||
}
|
||||
|
||||
[ViewVariables]
|
||||
public IReadOnlyList<SignalPort> Inputs => _inputs;
|
||||
public IReadOnlyDictionary<string, List<PortIdentifier>> Inputs => _inputs;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user