4 releases (breaking)
new 0.4.0 | Nov 30, 2024 |
---|---|
0.3.0 | Jul 26, 2024 |
0.2.0 | Jul 16, 2024 |
0.1.0 | Jul 4, 2024 |
#993 in Game dev
139 downloads per month
36KB
170 lines
bevy_simple_prefs
An unambitious Bevy plugin for persisting multiple Bevy Resource
s into a single preferences file, suitable for small projects like jam games.
- Persists to a single
ron
file - Does IO in Bevy's async task pool
- WASM compatible
Usage
- Derive
Prefs
on astruct
with members that areResource
s you want to be saved - Simply modify your
Resource
s to initiate a save - Write code that reacts to those
Resource
s changing, if you want
Compatibility
bevy_simple_prefs |
bevy |
---|---|
0.4 |
0.15 |
0.1 -0.3 |
0.14 |
Contributing
Please feel free to open a PR, but keep in mind this project's goals. This is meant to be a very lightweight crate. There should be zero additional dependencies on other Bevy ecosystem crates.
Please keep PRs small and scoped to a single feature or fix.
Alternatives
If you need more features, check out bevy-persistent
or bevy-settings
. There are also a few other options in the persistence section of Bevy Assets.
Dependencies
~30–41MB
~678K SLoC