Split project
This commit is contained in:
31
Ports/SignalPorts/SignalOutPort.cs
Normal file
31
Ports/SignalPorts/SignalOutPort.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Enigmos.Cables;
|
||||
using Enigmos.Modules.ControllingModules;
|
||||
using Nocturnis.Enigmos.Ports;
|
||||
|
||||
namespace Enigmos.Ports.SignalPorts;
|
||||
|
||||
public partial class SignalOutPort : SignalPort, ISignalOutPort
|
||||
{
|
||||
public new ControllingModule Module
|
||||
{
|
||||
get => base.Module as ControllingModule;
|
||||
set => base.Module = value;
|
||||
}
|
||||
|
||||
|
||||
public new SignalInPort ConnectedPort
|
||||
{
|
||||
get => base.ConnectedPort as SignalInPort;
|
||||
set => base.ConnectedPort = value;
|
||||
}
|
||||
|
||||
public override bool IsMatch(IBasePort other) => other is SignalInPort;
|
||||
|
||||
public override BaseCable MakeCable(IBasePort other)
|
||||
{
|
||||
BaseCable res = base.MakeCable(other);
|
||||
res.PortFrom = other;
|
||||
res.PortTo = this;
|
||||
return res;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user