33 lines
780 B
C#
33 lines
780 B
C#
using Enigmos.Cables;
|
|
using Enigmos.Modules.ControllingModules;
|
|
using Nocturnis.Enigmos.Modules;
|
|
using Nocturnis.Enigmos.Ports;
|
|
using Nocturnis.Enigmos.Ports.SignalPorts.Directions;
|
|
|
|
namespace Enigmos.Ports.SignalPorts;
|
|
public partial class SignalInPort : SignalPort, ISignalInPort
|
|
{
|
|
public new IControllingModule Module
|
|
{
|
|
get => (base.Module as IControllingModule)!;
|
|
set => base.Module = value;
|
|
}
|
|
|
|
public new ISignalOutPort ConnectedPort
|
|
{
|
|
get => base.ConnectedPort as ISignalOutPort;
|
|
set => base.ConnectedPort = value;
|
|
}
|
|
|
|
public override bool IsMatch(IBasePort other) => other is SignalOutPort;
|
|
|
|
public override BaseCable MakeCable(IBasePort other)
|
|
{
|
|
BaseCable res = base.MakeCable(other);
|
|
res.PortFrom = this;
|
|
res.PortTo = other;
|
|
return res;
|
|
}
|
|
|
|
}
|