Пример #1
0
 public Node(Air air, NodeDef def)
     : base(air)
 {
     _nodeDef = def;
     _properties = new Dictionary<string, object>();
     _outEdges = new List<Edge>();
     _inEdges = new List<Edge>();
 }
Пример #2
0
 public Node CreateNode(NodeDef definition)
 {
     Node node = new Node(this, definition);
     _nodes.Add(node);
     return node;
 }
Пример #3
0
 public NodeDef CreateNodeDef(string name)
 {
     NodeDef nodeDef = new NodeDef(this, name);
     _nodeDefsByName.Add(nodeDef.Name, nodeDef);
     return nodeDef;
 }