コード例 #1
0
    private void LinkRoomPorts(Port _outPort, Port _inPort)
    {
        Edge tempEdge = new Edge()
        {
            output = _outPort,
            input  = _inPort
        };

        tempEdge.input.Connect(tempEdge);
        tempEdge.output.Connect(tempEdge);
        m_targetGraph.Add(tempEdge);
    }
コード例 #2
0
    }     //end expand nodes function

    private void LinkRoomPorts(Port _outPort, Port _inPort)
    {
        Edge l_tempEdge = new Edge()
        {
            output = _outPort,
            input  = _inPort
        };

        m_edgesList.Add(l_tempEdge);

        if ((_outPort.node as RoomNode) == m_beginNodeInstantiated)
        {
            m_currentBeginNodeEdge = l_tempEdge;
        }
        else
        {
            l_tempEdge.input.Connect(l_tempEdge);
            l_tempEdge.output.Connect(l_tempEdge);
            m_graphView.Add(l_tempEdge);
        }
    }