public NodePort(Node owner, NodePortType type) { Rect = new Rect(0, 0, 10, 10); Owner = owner; Type = type; State = PortState.Idle; }
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 OutputPortConfig(string _name, string _humanName, string desc, NodePortType _type, InputPortConfig[] inputPorts, OutputPortConfig[] outputPorts) : this() { name = _name; humanName = _humanName; description = desc; type = _type; inputs = inputPorts.Cast <object>().ToArray(); outputs = outputPorts.Cast <object>().ToArray(); }
public OutputPortConfig(string _name, string _humanName, string desc, NodePortType _type, InputPortConfig[] inputPorts, OutputPortConfig[] outputPorts) : this() { name = _name; humanName = _humanName; description = desc; type = _type; inputs = inputPorts.Cast<object>().ToArray(); outputs = outputPorts.Cast<object>().ToArray(); }
public InputPortConfig(string _name, NodePortType _type, string desc = "", string _humanName = "", string UIConfig = "") : this() { name = _name; humanName = _humanName; description = desc; uiConfig = UIConfig; defaultValue = null; }
public void AddPort(NodePortType type, Action <NodePort> onClick) { if (type == NodePortType.In) { _inPorts.Add(new NodePort(this, type)); _inPortCallbacks.Add(onClick); } else if (type == NodePortType.Out) { _outPorts.Add(new NodePort(this, type)); _outPortCallbacks.Add(onClick); } }
public InputPortConfig(string _name, NodePortType _type, object defaultVal = null, string desc = "", string _humanName = "", string UIConfig = "") : this(_name, _type, desc, _humanName, UIConfig) { defaultValue = defaultVal; }
public OutputPortConfig(string _name, string _humanName, string desc, NodePortType _type) : this() { name = _name; humanName = _humanName; description = desc; type = _type; }