示例#1
0
 public void Link <T>(IFlowOutNode outNode) where T : IFlowInNode
 {
     foreach (var node in _nodes)
     {
         if (node is T value)
         {
             Link(outNode.FlowOut, value.FlowIn);
         }
     }
 }
示例#2
0
        public void Link(IFlowOutNode startNode, IFlowInNode endNode, params IFlowNode[] flow)
        {
            int count = flow.Length;

            startNode.Link(startNode.FlowOut, flow[0].FlowIn);
            for (int i = 1; i < count; i++)
            {
                flow[i - 1].Link(flow[i - 1].FlowOut, flow[i].FlowIn);
            }
            flow[count - 1].Link(flow[count - 1].FlowOut, endNode.FlowIn);
        }
示例#3
0
 public void Link(IFlowOutNode outNode, IFlowInNode inNode)
 {
     outNode.Link(outNode.FlowOut, inNode.FlowIn);
 }