예제 #1
0
 public NodePort(Node owner, NodePortType type)
 {
     Rect  = new Rect(0, 0, 10, 10);
     Owner = owner;
     Type  = type;
     State = PortState.Idle;
 }
예제 #2
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);
 }
예제 #3
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);
        }
예제 #4
0
        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();
        }
예제 #6
0
        public InputPortConfig(string _name, NodePortType _type, string desc = "", string _humanName = "", string UIConfig = "")
            : this()
        {
            name      = _name;
            humanName = _humanName;

            description = desc;
            uiConfig    = UIConfig;

            defaultValue = null;
        }
예제 #7
0
        public InputPortConfig(string _name, NodePortType _type, string desc = "", string _humanName = "", string UIConfig = "")
            : this()
        {
            name = _name;
            humanName = _humanName;

            description = desc;
            uiConfig = UIConfig;

            defaultValue = null;
        }
예제 #8
0
 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);
     }
 }
예제 #9
0
 public InputPortConfig(string _name, NodePortType _type, object defaultVal = null, string desc = "", string _humanName = "", string UIConfig = "")
     : this(_name, _type, desc, _humanName, UIConfig)
 {
     defaultValue = defaultVal;
 }
예제 #10
0
 public InputPortConfig(string _name, NodePortType _type, object defaultVal = null, string desc = "", string _humanName = "", string UIConfig = "")
     : this(_name, _type, desc, _humanName, UIConfig)
 {
     defaultValue = defaultVal;
 }
예제 #11
0
파일: Ports.cs 프로젝트: rookboom/CryMono
 public OutputPortConfig(string _name, string _humanName, string desc, NodePortType _type)
     : this()
 {
     name = _name;
     humanName = _humanName;
     description = desc;
     type = _type;
 }