2022-11-24 07:00:34 +01:00
|
|
|
using Content.Shared.Tools;
|
|
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
|
using Robust.Shared.Utility;
|
|
|
|
|
|
2021-06-09 22:19:39 +02:00
|
|
|
namespace Content.Server.MachineLinking.Components
|
2020-08-29 03:33:42 -07:00
|
|
|
{
|
|
|
|
|
[RegisterComponent]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed class SignalLinkerComponent : Component
|
2020-08-29 03:33:42 -07:00
|
|
|
{
|
|
|
|
|
[ViewVariables]
|
2022-04-16 09:19:43 +12:00
|
|
|
public EntityUid? SavedTransmitter;
|
2022-04-04 01:13:03 -05:00
|
|
|
|
|
|
|
|
[ViewVariables]
|
2022-04-16 09:19:43 +12:00
|
|
|
public EntityUid? SavedReceiver;
|
2022-11-24 07:00:34 +01:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Optional tool quality required for linker to work.
|
|
|
|
|
/// If linker entity doesn't have this quality it will ignore any interaction.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[DataField("requiredQuality", customTypeSerializer: typeof(PrototypeIdSerializer<ToolQualityPrototype>))]
|
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
|
|
|
public string? RequiredQuality;
|
2020-08-29 03:33:42 -07:00
|
|
|
}
|
|
|
|
|
}
|