bevy/crates/bevy_state
MiniaczQ 6d0b7504a2
Add more granular system sets for state transition schedule ordering (#13763)
# Objective

Fixes #13711 

## Solution

Introduce smaller, generic system sets for each schedule variant, which
are ordered against other generic variants:
- `ExitSchedules<S>` - For `OnExit` schedules, runs from leaf states to
root states.
- `TransitionSchedules<S>` - For `OnTransition` schedules, runs in
arbitrary order.
- `EnterSchedules<S>` - For `OnEnter` schedules, runs from root states
to leaf states.

Also unified `ApplyStateTransition<S>` schedule which works in basically
the same way, just for internals.

## Testing

- One test that tests schedule execution order

---------

Co-authored-by: Lee-Orr <lee-orr@users.noreply.github.com>
2024-06-10 13:13:58 +00:00
..
macros rename the crate bevy_state_macros_official back to its original name (#13732) 2024-06-07 12:49:21 +00:00
src Add more granular system sets for state transition schedule ordering (#13763) 2024-06-10 13:13:58 +00:00
Cargo.toml rename the crate bevy_state_macros_official back to its original name (#13732) 2024-06-07 12:49:21 +00:00