2023-07-24 14:07:35 +12:00
|
|
|
using Content.Shared.DeviceLinking;
|
2022-05-12 20:46:20 +12:00
|
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
2022-04-22 02:54:39 -04:00
|
|
|
|
2023-05-07 08:07:24 +02:00
|
|
|
namespace Content.Server.DeviceLinking.Components
|
2022-04-22 02:54:39 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Sends out a signal to machine linked objects.
|
|
|
|
|
/// </summary>
|
|
|
|
|
[RegisterComponent]
|
|
|
|
|
public sealed class SignallerComponent : Component
|
|
|
|
|
{
|
2022-05-12 20:46:20 +12:00
|
|
|
/// <summary>
|
|
|
|
|
/// The port that gets signaled when the switch turns on.
|
|
|
|
|
/// </summary>
|
2023-07-24 14:07:35 +12:00
|
|
|
[DataField("port", customTypeSerializer: typeof(PrototypeIdSerializer<SourcePortPrototype>))]
|
2022-05-12 20:46:20 +12:00
|
|
|
public string Port = "Pressed";
|
2022-04-22 02:54:39 -04:00
|
|
|
}
|
|
|
|
|
}
|