Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added json cofiguration feature for Train Track system #964

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

cambrialas
Copy link

@cambrialas cambrialas commented Dec 4, 2024

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

@cambrialas
Copy link
Author

Does not compile on Windows, array length is not constant at compile time. Will fix tomorrow, live in GMT+1 zone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant