bevy/crates/bevy_ecs/src/schedule
Edgar Geier 67a89e9c58 Add distributive_run_if to IntoSystemConfigs (#7724)
# Objective

- Fixes #7659.

## Solution

- This PR extracted the `distributive_run_if` part of #7676, because it does not require the controversial introduction of anonymous system sets.
- The distinctive name should make the user aware about the differences between `IntoSystemConfig::run_if` and `IntoSystemConfigs::distributive_run_if`.
- The documentation explains in detail the consequences of using the API and possible pit falls when using it.
- A test demonstrates the possibility of changing the condition result, resulting in some of the systems not being run.

---

## Changelog

### Added
- Add `distributive_run_if` to `IntoSystemConfigs` to enable adding a run condition to each system when using `add_systems`.
2023-02-18 21:33:09 +00:00
..
executor Default to using ExecutorKind::SingleThreaded on wasm32 (#7717) 2023-02-17 00:22:56 +00:00
condition.rs Fix trait bounds for run conditions (#7688) 2023-02-16 16:45:48 +00:00
config.rs Add distributive_run_if to IntoSystemConfigs (#7724) 2023-02-18 21:33:09 +00:00
graph_utils.rs expose ScheduleGraph for third party dependencies (#7522) 2023-02-16 17:09:45 +00:00
mod.rs Add distributive_run_if to IntoSystemConfigs (#7724) 2023-02-18 21:33:09 +00:00
schedule.rs make ScheduleGraph::initialize public (#7723) 2023-02-17 20:25:28 +00:00
set.rs change is_system_type() -> bool to system_type() -> Option<TypeId> (#7715) 2023-02-16 22:25:48 +00:00
state.rs Rename state_equals condition to in_state (#7677) 2023-02-14 21:30:14 +00:00