19 lines
614 B
C#
19 lines
614 B
C#
using Content.Shared.DeviceLinking;
|
|
using Robust.Shared.Serialization.TypeSerializers.Implementations.Custom.Prototype;
|
|
|
|
namespace Content.Server.DeviceLinking.Components
|
|
{
|
|
/// <summary>
|
|
/// Sends out a signal to machine linked objects.
|
|
/// </summary>
|
|
[RegisterComponent]
|
|
public sealed class SignallerComponent : Component
|
|
{
|
|
/// <summary>
|
|
/// The port that gets signaled when the switch turns on.
|
|
/// </summary>
|
|
[DataField("port", customTypeSerializer: typeof(PrototypeIdSerializer<SourcePortPrototype>))]
|
|
public string Port = "Pressed";
|
|
}
|
|
}
|