public NodeData(string _title, string _typeName, string _nameSpace, string _category, string _description, string _color, int _outputSlotCount, string[] _nodeOutputs, NodeAttributes.NodeType _nodeType) { title = _title; typeName = _typeName; nameSpace = _nameSpace; category = _category; description = _description; color = _color; outputSlotCount = _outputSlotCount; nodeOutputs = _nodeOutputs; nodeType = _nodeType; }
//public NodeCategoryTree (string _path, string _name) //{ // Path = _path; // Name = _name; //} public void AddNode(string _title, string _typeName, string _nameSpace, string _category, string _description, string _color, int _outputSlotCount, string[] _nodeOutputs, NodeAttributes.NodeType _nodeType) { if (nodesInCategory == null) { nodesInCategory = new List <NodeData>(); } nodesInCategory.Add(new NodeData(_title, _typeName, _nameSpace, _category, _description, _color, _outputSlotCount, _nodeOutputs, _nodeType)); }