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); }
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); }
//获取连线位置 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; }
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); }
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); }
public BTNodeConnection(BTNodeDesigner _dest, BTNodeDesigner _orig, NodeConnectionType _type) { mDestinationNodeDesigner = _dest; mOriginatingNodeDesigner = _orig; NodeConnectionType = _type; }
public void loadConnection(Task nodeDesigner, NodeConnectionType nodeConnectionType) { OriginatingNodeDesigner = nodeDesigner; NodeConnectionType = nodeConnectionType; this.selected = false; }
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; }
public EthereumNodeClient(NodeConnectionType connectionType, string address) { _connector = NodeConnectorFactory.Create(connectionType, address); }
// 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; }
public BTreeNodeConnection(BTreeNodeDesigner _dest, BTreeNodeDesigner _orig, NodeConnectionType _type) { m_DestinationNodeDesigner = _dest; m_OriginatingNodeDesigner = _orig; m_NodeConnectionType = _type; }