コード例 #1
0
ファイル: Node.cs プロジェクト: r-bel/glorg2
 /// <summary>
 /// Removes a child node from this node
 /// </summary>
 /// <param name="nodes">Node to remove</param>
 /// <remarks>This is not a synchronous function. Children will be removed on the next oppurtunity.</remarks>
 public void Remove(Node child)
 {
     remove_children.Add(child);
     //child.owner = null;
 }
コード例 #2
0
ファイル: Node.cs プロジェクト: r-bel/glorg2
 /// <summary>
 /// Adds a child node to this node
 /// </summary>
 /// <param name="child">Child to remove</param>
 /// <remarks>This is not a synchronous function. Children will be added on the next oppurtunity.</remarks>
 public void Add(Node child)
 {
     var rend = child as IRenderable;
     if (!child.graphics_pending && rend != null)
     {
         child.graphics_pending = true;
         owner.Owner.GraphicInvoke(new Action(rend.InitializeGraphics));
     }
     add_children.Add(child);
     child.owner = owner;
 }