コード例 #1
0
ファイル: NodePort.cs プロジェクト: zeronero13/u
 public NodePort(NodePortType _portType, NodeConnectionType _connectType, NodeBase _parentNode)
 {
     portType       = _portType;
     connectionType = _connectType;
     parentNode     = _parentNode;
     portRect       = new MyRect(0.0f, 0.0f, 0.0f, 0.0f);
 }
コード例 #2
0
ファイル: NodePort.cs プロジェクト: zeronero13/u
        public static NodePort createPort(NodePortType _portType, NodeConnectionType _connectType, NodeBase _parentNode)
        {
            NodePort nport = new NodePort(_portType, _connectType, _parentNode);

            nport.portRect = new MyRect(0.0f, 0.0f, 0.0f, 0.0f);

            return(nport);
        }
コード例 #3
0
 //获取连线位置
 public Vector2 getConnectionPosition(Vector2 offset, NodeConnectionType connectionType)
 {
     Vector2 result;
     if (connectionType == NodeConnectionType.Incoming)
     {
         Rect rect = IncomingConnectionRect(offset);
         result = new Vector2(rect.center.x, rect.y + (BTreeEditorUtility.TopConnectionHeight / 2));
     }
     else
     {
         Rect rect2 = OutgoingConnectionRect(offset);
         result = new Vector2(rect2.center.x, rect2.yMax - (BTreeEditorUtility.BottomConnectionHeight / 2));
     }
     return result;
 }
コード例 #4
0
ファイル: NodeDesigner.cs プロジェクト: mengtest/StateTree
        public Vector2 GetConnectionPosition(Vector2 offset, NodeConnectionType connectionType)
        {
            Vector2 result;

            if (connectionType == NodeConnectionType.Incoming)
            {
                Rect rect = IncomingConnectionRect(offset);
                result = new Vector2(rect.center.x, rect.y + 7f);
            }
            else
            {
                Rect rect2 = OutgoingConnectionRect(offset);
                result = new Vector2(rect2.center.x, rect2.yMax - 8f);
            }
            return(result);
        }
コード例 #5
0
        public static INodeConnector Create(NodeConnectionType type, string address)
        {
            INodeConnector connector;

            switch (type)
            {
            case NodeConnectionType.HTTP:
                connector = new HttpNodeConnector();
                break;

            case NodeConnectionType.IPC:
                connector = new IpcNodeConnector();
                break;

            default: throw new Exception("Unknown INodeConnectionType.");
            }

            connector.Address = address;

            return(connector);
        }
コード例 #6
0
 public BTNodeConnection(BTNodeDesigner _dest, BTNodeDesigner _orig, NodeConnectionType _type)
 {
     mDestinationNodeDesigner = _dest;
     mOriginatingNodeDesigner = _orig;
     NodeConnectionType       = _type;
 }
コード例 #7
0
ファイル: NodeConnection.cs プロジェクト: webconfig/Design
 public void loadConnection(Task nodeDesigner, NodeConnectionType nodeConnectionType)
 {
     OriginatingNodeDesigner = nodeDesigner;
     NodeConnectionType = nodeConnectionType;
     this.selected = false;
 }
コード例 #8
0
ファイル: Task.cs プロジェクト: webconfig/Design
    public Vector2 getIncomingConnectionRect(Vector2 offset, NodeConnectionType connectionType)
    {
        Vector2 result;

        Rect rect = this.IncomingConnectionRect(offset);
        result = new Vector2(rect.center.x, rect.y +Task.TopConnectionHeight / 2);

        return result;
    }
コード例 #9
0
 public EthereumNodeClient(NodeConnectionType connectionType, string address)
 {
     _connector = NodeConnectorFactory.Create(connectionType, address);
 }
コード例 #10
0
 // Token: 0x06000206 RID: 518 RVA: 0x000131AC File Offset: 0x000113AC
 public void LoadConnection(NodeDesigner nodeDesigner, NodeConnectionType nodeConnectionType)
 {
     this.originatingNodeDesigner = nodeDesigner;
     this.nodeConnectionType      = nodeConnectionType;
     this.selected = false;
 }
コード例 #11
0
 public BTreeNodeConnection(BTreeNodeDesigner _dest, BTreeNodeDesigner _orig, NodeConnectionType _type)
 {
     m_DestinationNodeDesigner = _dest;
     m_OriginatingNodeDesigner = _orig;
     m_NodeConnectionType      = _type;
 }