Bevy Convars
This is a crate that provides an implementation of Convars (console variables or config variables depending on who you ask), provided as bevy resources, with support for serialization, change detection, and the works. Convars are presented as resources within the Bevy world, and can be accessed as such without any special code.
cratecvar_collection!
...
State of Development
This crate is very early, and while it probably can replace your existing solution it needs some elbow grease to use outside of the supported usecases.
- Config loading.
- Layered configs loading.
- Builtin system for config presets (can easily be implemented by loading config files containing the preset.)
- Config saving.
- Config reflection.
- Intelligent default value handling.
- Built-in support for existing netcode libraries.
- Full no_std support. (Needs further testing and work)
- WASM support.
- Minimal set of required Bevy features.
Bevy Compatibility
This library tracks Bevy's releases, at this time the following holds:
| Bevy Version | bevy-convars Version |
|---|---|
| 0.16.0-rc.4 | 0.1.0 |
License
This work is available under EITHER the Apache 2.0 license (as provided in LICENSE-APACHE) or the MIT license (as provided in LICENSE-MIT).