Added json cofiguration feature for Train Track system #964
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.
This feature add configuration for connection points in the train track system.
The json file, can specify connection points for any part type.
For each part type, an arbitrary number of connection points can be specified.
Each connection point consist of a position and direction, and a group of related pieces, which can be connected to this connection point.
Related pieces groups, is specified with a name and a list of parts names.
Related pieces group can be related to a connection point by related pieces group name
The json file is read at startup and the related pieceinfos is updated accordingly.
The json file, now configures the 9 Volt and 12 Volt train track sections, as an example, can easily be expanded.
Kind regards