Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Whilst working on my own project i found i wanted to include a cost into node, so that the pathing would avoid them if possible.
So I have implemented it and will let you decide if you want it. (this also addresses issue #14)
I have implemented it so that it is non breaking, as it only enables if the developer sets a previously non existant option.
Examples:
I wanted the wires to avoid blocking the pins on the chips if possible to make it easier for later wire to path to them.
So with my cost feature i added an extra cost to the nodes just above and below a chip. now it paths like this.
But if it MUST go into a space because going around is impossible or far too costly it will
Developers using the feature can set their own cost values to make things even les desirable if they wished, this could for instance be used in a game to avoid different types of terrain if possible, unless the path arround is far too long.