bevy/crates/bevy_ecs/src/schedule
Alix Bott 12f005a024
Add condition_changed and condition_became_true to common_conditions (#14917)
# Objective

- I needed to run a system whenever a specific condition became true
after being previously false.
- Other users might also need to run a system when a condition changes,
regardless of if it became true or false.

## Solution

- This adds two systems to common_conditions:
- `condition_changed` that changes whenever the inner condition changes
- `condition_became_true` that returns true whenever the inner condition
becomes true after previously being false

## Testing

- I added a doctest for each function

---------

Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Jan Hohenheim <jan@hohenheim.ch>
2024-08-26 18:32:44 +00:00
..
executor Fix common capitalization errors in documentation (#14562) 2024-07-31 21:16:05 +00:00
condition.rs Add condition_changed and condition_became_true to common_conditions (#14917) 2024-08-26 18:32:44 +00:00
config.rs Use #[doc(fake_variadic)] to improve docs readability (#14703) 2024-08-12 18:54:33 +00:00
graph_utils.rs Use a unstable sort to sort component ids in bevy_ecs (#13789) 2024-06-17 14:56:19 +00:00
mod.rs Separate component and resource access (#14561) 2024-08-06 01:19:39 +00:00
schedule.rs Fix soudness issue with Conflicts involving read_all and write_all (#14579) 2024-08-06 10:55:31 +00:00
set.rs Add on_unimplemented Diagnostics to Most Public Traits (#13347) (#13662) 2024-06-04 00:31:34 +00:00
stepping.rs Fix beta lints (#12980) 2024-04-16 02:46:46 +00:00