Ejemplo n.º 1
0
 /// <summary>
 /// This will return true if the node passed is one of the children or grandchildren of this node.
 /// </summary>
 /// <param name="node">The node that might be a child.</param>
 /// <returns>True if this node is an ancestor of the one specified.</returns>
 public bool IsAncestorOf(TmxNode node)
 {
     return node.IsDescendentOf(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// This will return true if the node passed is one of the children or grandchildren of this node.
 /// </summary>
 /// <param name="node">The node that might be a child.</param>
 /// <returns>True if this node is an ancestor of the one specified.</returns>
 public bool IsAncestorOf(TmxNode node)
 {
     return(node.IsDescendentOf(this));
 }