[DataField, ViewVariables(VVAccess.ReadWrite)]
public ProtoId<SourcePortPrototype> OutputPort = "Output";
- // Initial state
+ // Initial state, used to not spam invoke ports
[DataField]
public SignalState StateA = SignalState.Low;
[DataField]
public bool LastOutput;
}
-
-/// <summary>
-/// Last state of a signal port, used to not spam invoking ports.
-/// </summary>
-public enum SignalState : byte
-{
- Momentary, // Instantaneous pulse high, compatibility behavior
- Low,
- High
-}
using Content.Server.DeviceLinking.Components;
using Content.Server.DeviceNetwork;
using Content.Server.Doors.Systems;
+using Content.Shared.DeviceLinking;
using Content.Shared.DeviceLinking.Events;
using Content.Shared.DeviceNetwork;
using Content.Shared.Doors.Components;
using Content.Server.DeviceLinking.Components;
+using Content.Shared.DeviceLinking;
using Content.Shared.DeviceLinking.Events;
using Content.Shared.DeviceNetwork;
InputB,
Output
}
+
+/// <summary>
+/// The possible states of a logic-capable signal.
+/// Stored in network payload data of device network messages.
+/// </summary>
+[Serializable, NetSerializable]
+public enum SignalState : byte
+{
+ Momentary, // Instantaneous pulse high, compatibility behavior
+ Low,
+ High
+}