| 123456789101112131415161718192021222324252627282930 |
- using Content.Shared.DeviceLinking;
- using Content.Shared.Power.Generator;
- using Robust.Shared.Prototypes;
- namespace Content.Server.Power.Generator;
- /// <summary>
- /// When attached to an entity with <see cref="FuelGeneratorComponent"/> it will allow the signal network to exert control over the generator.
- /// </summary>
- [RegisterComponent]
- public sealed partial class GeneratorSignalControlComponent: Component
- {
- /// <summary>
- /// The port that should be invoked when turning the generator on.
- /// </summary>
- [DataField]
- public ProtoId<SinkPortPrototype> OnPort = "On";
- /// <summary>
- /// The port that should be invoked when turning the generator off.
- /// </summary>
- [DataField]
- public ProtoId<SinkPortPrototype> OffPort = "Off";
- /// <summary>
- /// The port that should be invoked when toggling the generator.
- /// </summary>
- [DataField]
- public ProtoId<SinkPortPrototype> TogglePort = "Toggle";
- }
|