-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# 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>), )); ```
- Loading branch information
1 parent
cd49715
commit ee88d79
Showing
2 changed files
with
45 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters