move SignalState to shared (#37303)
Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -49,7 +49,7 @@ public sealed partial class LogicGateComponent : Component
|
||||
[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;
|
||||
|
||||
@@ -59,13 +59,3 @@ public sealed partial class LogicGateComponent : Component
|
||||
[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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user