Add source generation; move model and part definitions to yaml files #94
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.
Description
This PR aims to improve the maintainability of models and parts by moving their definition to a single place and using a "build" step to generate certain source files which are currently scattered throughout the repo. This would do away with the need to maintain the Zomboid "item" and "repair" txt files, certain Lua files, and (possibly) the Zomboid translation files.
This PR also ought to introduce a Github Action to run the "build" step and generate a package or artifact which could be used for validation and ci.
Related Issues
Resolves #70
Checklist
Additional Notes
A good followup task to this work would be to add a Github Action to (somehow) generate some nice markdown documentation from the schema files. Surely this must be possible. This would potentially address issue #42.
We could also add a Github Action that validates the model and part yaml files using these schemata.
By submitting this pull request, I confirm that my contributions are made under the terms of the project's license.