Skip to content

Config file for game settings#17

Merged
Piturnah merged 7 commits intomainfrom
feat/config
Jan 8, 2025
Merged

Config file for game settings#17
Piturnah merged 7 commits intomainfrom
feat/config

Conversation

@Piturnah
Copy link
Collaborator

@Piturnah Piturnah commented Dec 17, 2022

TODO:

  • Implement config file
  • Default values if not present
  • Warn on unexpected value
  • Serialize Config on change

Will close #15

@Piturnah Piturnah mentioned this pull request Dec 17, 2022
3 tasks
Uses only ECS systems now to tidy it up. Also will log a warning if
there is an unexpected key in the config file.
Add `semicolon_if_nothing_returned` and `uninlined_format_args` for more
consistent code style
We don't need to pretend that we can change the config while the game is
running (yet).
@Piturnah Piturnah marked this pull request as ready for review January 8, 2025 17:28
@Piturnah Piturnah merged commit 23fe763 into main Jan 8, 2025
1 check passed
@Piturnah Piturnah deleted the feat/config branch January 19, 2025 00:57
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.

Load config file on startup

1 participant