source generator
This commit is contained in:
@@ -15,7 +15,7 @@ public partial class AttackActionModule : ActionModule, ITerminalModule
|
||||
_ = ip.GetData.Get;
|
||||
}
|
||||
|
||||
public override IEnumerable<IBasePort> Ports => SignalInPorts.Union(DataInPorts.Cast<IBasePort>()).ToArray();
|
||||
public bool Finished { get; set; }
|
||||
|
||||
public override void Init()
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ public partial class MoveActionModule : ActionModule, ITerminalModule
|
||||
_ = ip.GetData.Get;
|
||||
}
|
||||
|
||||
public override IEnumerable<IBasePort> Ports => DataInPorts.Union(SignalInPorts.Cast<IBasePort>());
|
||||
public bool Finished { get; set; }
|
||||
|
||||
public override void Init()
|
||||
{
|
||||
|
||||
@@ -16,7 +16,6 @@ public partial class RootModule : BaseModule, IRootModule
|
||||
|
||||
protected override bool Draggable => false;
|
||||
public ISignalOutPort[] SignalOutPorts { get; set; } = Array.Empty<ISignalOutPort>();
|
||||
public override IEnumerable<IBasePort> Ports => SignalOutPorts;
|
||||
public Stopwatch? Timer { get; set; }
|
||||
public bool Visited { get; set; }
|
||||
|
||||
|
||||
@@ -13,8 +13,6 @@ public partial class SinglePoleDoubleThrowSwitchModule : PiplineModule, IParamet
|
||||
{
|
||||
public HashSet<IConfigurableParameter> ConfigurableParameters { get; set; } = new();
|
||||
private IBoolParameter? LeftPortForTrue { get; set; }
|
||||
public override IEnumerable<IBasePort> Ports =>
|
||||
SignalInPorts.Union(SignalOutPorts.Cast<IBasePort>()).Union(DataInPorts).ToArray();
|
||||
public IDataInPort[] DataInPorts { get; set; } = Array.Empty<IDataInPort>();
|
||||
public void Drain()
|
||||
{
|
||||
@@ -22,6 +20,8 @@ public partial class SinglePoleDoubleThrowSwitchModule : PiplineModule, IParamet
|
||||
_ = ip.GetData.Get;
|
||||
}
|
||||
|
||||
public bool Finished { get; set; }
|
||||
|
||||
public override void Init()
|
||||
{
|
||||
base.Init();
|
||||
|
||||
@@ -8,8 +8,6 @@ namespace Enigmos.Modules.ControllingModules;
|
||||
|
||||
public partial class SinglePoleSingleThrowSwitchModule : PiplineModule, ITerminalModule
|
||||
{
|
||||
public override IEnumerable<IBasePort> Ports =>
|
||||
SignalInPorts.Union(SignalOutPorts.Cast<IBasePort>()).Union(DataInPorts);
|
||||
public IDataInPort[] DataInPorts { get; set; } = Array.Empty<IDataInPort>();
|
||||
|
||||
public void Drain()
|
||||
@@ -19,6 +17,8 @@ public partial class SinglePoleSingleThrowSwitchModule : PiplineModule, ITermina
|
||||
|
||||
}
|
||||
|
||||
public bool Finished { get; set; }
|
||||
|
||||
public override void Init()
|
||||
{
|
||||
base.Init();
|
||||
|
||||
Reference in New Issue
Block a user