예제 #1
0
파일: Node.cs 프로젝트: vadimostanin/GA
 private void AddChild(Node child, int index)
 {
     if (child == null) return;
     if (child.Parent != null)
         child.parent.children.ReleaseChild(Array.IndexOf(child.parent.children._childrenArray, child));
     _childrenArray[index] = child;
     child.parent = _owner;
 }
예제 #2
0
파일: Node.cs 프로젝트: vadimostanin/GA
 public ChildrenCollection(Node owner, int length)
 {
     _owner = owner;
     _childrenArray = new Node[length];
 }