bevy/crates/bevy_state/src
AlephCubed b993202d79
Refactor state scoped events to match entities. (#19435)
This adds support for clearing events when **entering** a state (instead
of just when exiting) and updates the names to match
`DespawnOnExitState`.

Before:
```rust
app.add_state_scoped_event::<MyGameEvent>(GameState::Play);
```
After:
```rust
app
  .add_event::<MyGameEvent>()
  .clear_events_on_exit_state::<MyGameEvent>(GameState::Play);
```
2025-05-31 20:14:14 +00:00
..
state Remove apostrophes in possessive its (#19244) 2025-05-26 19:53:14 +00:00
app.rs Enable state scoped entities by default (#19354) 2025-05-26 20:26:41 +00:00
commands.rs Add no_std support to bevy_state (#17028) 2024-12-29 23:28:18 +00:00
condition.rs Rename Condition to SystemCondition` (#19328) 2025-05-22 15:50:19 +00:00
lib.rs Rename StateScoped to DespawnOnExitState and add DespawnOnEnterState (#18818) 2025-05-06 00:37:04 +00:00
reflect.rs Harden proc macro path resolution and add integration tests. (#17330) 2025-02-09 19:45:45 +00:00
state_scoped_events.rs Refactor state scoped events to match entities. (#19435) 2025-05-31 20:14:14 +00:00
state_scoped.rs Enable state scoped entities by default (#19354) 2025-05-26 20:26:41 +00:00