public bool TrySerialize(out SerInputPort serInputPort) { if (direction == Direction.Output) { serInputPort = null; return(false); } else { BehaviourT.Node outputNode = null; string outputPortName = null; if (connected) { if (connections.First().output is LogicPort output) { outputNode = output.nodeParent; outputPortName = output.basePort.Name; } } serInputPort = new SerInputPort(outputNode, outputPortName, basePort.Name); return(true); } }
internal virtual void TryConnectOutputPort(SerInputPort serInputPort) { }