Device Linking and better linking ui (#13645)
Co-authored-by: AJCM-git <60196617+AJCM-git@users.noreply.github.com> Co-authored-by: Visne <39844191+Visne@users.noreply.github.com> Co-authored-by: ElectroJr <leonsfriedrich@gmail.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
22
Content.Shared/DeviceLinking/DeviceLinkSinkComponent.cs
Normal file
22
Content.Shared/DeviceLinking/DeviceLinkSinkComponent.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using Robust.Shared.GameStates;
|
||||
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype.Set;
|
||||
|
||||
namespace Content.Shared.DeviceLinking;
|
||||
|
||||
[RegisterComponent]
|
||||
[NetworkedComponent] // for interactions. Actual state isn't currently synced.
|
||||
[Access(typeof(SharedDeviceLinkSystem))]
|
||||
public sealed class DeviceLinkSinkComponent : Component
|
||||
{
|
||||
/// <summary>
|
||||
/// The ports this sink has
|
||||
/// </summary>
|
||||
[DataField("ports", customTypeSerializer: typeof(PrototypeIdHashSetSerializer<SinkPortPrototype>))]
|
||||
public HashSet<string>? Ports;
|
||||
|
||||
/// <summary>
|
||||
/// Used for removing a sink from all linked sources when it gets removed
|
||||
/// </summary>
|
||||
[DataField("links")]
|
||||
public HashSet<EntityUid> LinkedSources = new();
|
||||
}
|
||||
Reference in New Issue
Block a user