コード例 #1
0
 /// <summary>
 /// Checks if a node can be adopted by this one.
 /// </summary>
 /// <param name="child">The node we want to adopt.</param>
 /// <returns>Returns true if this node can adopt the given child.</returns>
 public bool CanAdoptNode(BaseNode child)
 {
     return(_children.CanAdoptNode(child));
 }
コード例 #2
0
 /// <summary>
 /// Gets a connector of the node by a child connected to it.
 /// </summary>
 /// <param name="child">The child of the connector we are looking for.</param>
 /// <returns>Returns null if no connector could be found.</returns>
 public Connector GetConnector(BaseNode child)
 {
     return(_children.GetConnector(child));
 }