/// <summary> /// Initializes <see cref="StartNode"/> and sets the start node in the provided SearchGraph. /// </summary> private void CreateStartNodes(SearchGraph searchGraph) { if (Settings.SubsetTree.Count > 0 || Settings.InitialTree.Count > 0) { // if the current tree does not need to be part of the result, only skill the character node StartNode = searchGraph.SetStartNodes(new[] { _tree.GetCharNode() }); } else { StartNode = searchGraph.SetStartNodes(_tree.SkilledNodes); } }
/// <summary> /// Initializes <see cref="StartNode"/> and sets the start node in the provided SearchGraph. /// </summary> private void CreateStartNodes(SearchGraph searchGraph) { StartNode = searchGraph.SetStartNodes(_tree.SkilledNodes); }