private static FlowOutput GetFlowOutput(FlowNode node, LinkedPort str) { if (node == null) { return(null); } var output = node.GetFlowOutput(str.port); return(output); }
public void LinkFlowPort(FlowNode outputNode, string outputName, FlowNode inputNode, string inputName) { if (outputNode == inputNode) { return; } var output = outputNode.GetFlowOutput(outputName); var input = inputNode.GetFlowInput(inputName); if (output == null || input == null) { return; } output.LinkInput = input; }