bevy/crates/bevy_app/src
Niklas Eicker f1c0850b81 Rename state_equals condition to in_state (#7677)
# Objective

- Improve readability of the run condition for systems only running in a certain state

## Solution

- Rename `state_equals` to `in_state` (see [comment by cart](https://github.com/bevyengine/bevy/pull/7634#issuecomment-1428740311) in #7634 )
- `.run_if(state_equals(variant))` now is `.run_if(in_state(variant))`

This breaks the naming pattern a bit with the related conditions `state_exists` and `state_exists_and_equals` but I could not think of better names for those and think the improved readability of `in_state` is worth it.
2023-02-14 21:30:14 +00:00
..
app.rs Rename state_equals condition to in_state (#7677) 2023-02-14 21:30:14 +00:00
ci_testing.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00
lib.rs Fixed minor link error in docs (#7572) 2023-02-08 20:26:11 +00:00
plugin_group.rs Unique plugin (#6411) 2022-10-31 16:12:19 +00:00
plugin.rs Mention uniqueness check in plugin name method docs (#7554) 2023-02-07 22:40:22 +00:00
schedule_runner.rs Rename schedule v3 to schedule (#7519) 2023-02-06 18:44:40 +00:00