Machine Port Prototypes (#7659)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -1,8 +1,3 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Serialization.Manager.Attributes;
|
||||
using Robust.Shared.ViewVariables;
|
||||
using Content.Server.MachineLinking.System;
|
||||
|
||||
namespace Content.Server.MachineLinking.Components
|
||||
@@ -24,6 +19,7 @@ namespace Content.Server.MachineLinking.Components
|
||||
}
|
||||
|
||||
[RegisterComponent]
|
||||
[Friend(typeof(SignalLinkerSystem))]
|
||||
public sealed class SignalTransmitterComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
@@ -35,14 +31,6 @@ namespace Content.Server.MachineLinking.Components
|
||||
public float TransmissionRange = 30f;
|
||||
|
||||
[DataField("outputs")]
|
||||
private Dictionary<string, List<PortIdentifier>> _outputs = new();
|
||||
|
||||
[ViewVariables]
|
||||
public IReadOnlyDictionary<string, List<PortIdentifier>> Outputs => _outputs;
|
||||
|
||||
public void AddPort(string name)
|
||||
{
|
||||
_outputs.Add(name, new());
|
||||
}
|
||||
public Dictionary<string, List<PortIdentifier>> Outputs = new();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user