* Power stuff - Add shared IsPowered - Add shared ResolveApc - Move PowerChangedEvent to shared for now - Add SlimPoweredLight that actually functions how you'd expect a PoweredLight to function it id didn't have a bunch of bloat on it. * big update * boing
31 lines
959 B
C#
31 lines
959 B
C#
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";
|
|
}
|