mirror of
https://github.com/bevyengine/bevy
synced 2024-12-21 10:33:08 +00:00
ee88d79d88
# Objective Simplify Bevy-provided functions that return a condition-satisfying closure instead of just being the condition. ## Solution Become the condition. ## Testing I did not test. Game jamming. Hopefully CI passes. --- ## Migration Guide Some run conditions have been simplified. ```rust // Before: app.add_systems(Update, ( system_0.run_if(run_once()), system_1.run_if(resource_changed_or_removed::<T>()), system_2.run_if(resource_removed::<T>()), system_3.run_if(on_event::<T>()), system_4.run_if(any_component_removed::<T>()), )); // After: app.add_systems(Update, ( system_0.run_if(run_once), system_1.run_if(resource_changed_or_removed::<T>), system_2.run_if(resource_removed::<T>), system_3.run_if(on_event::<T>), system_4.run_if(any_component_removed::<T>), )); ``` |
||
---|---|---|
.. | ||
executor | ||
condition.rs | ||
config.rs | ||
graph_utils.rs | ||
mod.rs | ||
schedule.rs | ||
set.rs | ||
stepping.rs |