Crates.io | pyri_state |
lib.rs | pyri_state |
version | 0.2.1 |
source | src |
created_at | 2024-05-23 20:58:18.275092 |
updated_at | 2024-07-17 03:19:10.730755 |
description | A flexible `bevy_state` alternative |
homepage | |
repository | https://github.com/benfrankel/pyri_state |
max_upload_size | |
id | 1250300 |
size | 234,642 |
pyri_state
is a bevy_state
alternative offering flexible change detection & scheduling.
#[derive(State, Clone, PartialEq, Eq)]
struct Level(usize);
app.add_systems(StateFlush, state!(Level(4 | 7 | 10)).on_enter(save_progress));
Read the documentation or check out the examples folder for more information.
bevy version |
pyri_state version |
---|---|
0.14 | 0.2 |
0.13 | 0.1 |
This crate is available under either of MIT or Apache-2.0 at your choice.