public NodeData(Type type, string id, string name = "") { ClassType = type.ToString(); ID = id; Position = new NodeVec2(50f, 50f); // Default position Name = name == "" ? "Node" : name; }
public void Initialize(NodeData data) { Name = data.Name; ID = data.ID; Position = data.Position; InputPins.Clear(); // TEMP! OutputPins.Clear(); // TEMP! OnInitialize(); }