Beispiel #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>();
 }
Beispiel #2
0
 public Node CreateNode(NodeDef definition)
 {
     Node node = new Node(this, definition);
     _nodes.Add(node);
     return node;
 }
Beispiel #3
0
 public NodeDef CreateNodeDef(string name)
 {
     NodeDef nodeDef = new NodeDef(this, name);
     _nodeDefsByName.Add(nodeDef.Name, nodeDef);
     return nodeDef;
 }