mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
e2fd63104d
# Objective - Conditions don't have to be closures unless they have state or mutate. ## Solution - Simplify conditions when possible. --- ## Changelog The following run conditions are now regular systems: - resource_exists<T> - resource_added<T> - resource_changed<T> - resource_exists_and_changed<T> - state_exists<S: States> - state_changed<S: States> - any_with_component<T: Component> ## Migration Guide - resource_exists<T>() -> resource_exists<T> - resource_added<T>() -> resource_added<T> - resource_changed<T>() -> resource_changed<T> - resource_exists_and_changed<T>() -> resource_exists_and_changed<T> - state_exists<S: States>() -> state_exists<S: States> - state_changed<S: States>() -> state_changed<S: States> - any_with_component<T: Component>() -> any_with_component<T: Component> |
||
---|---|---|
.. | ||
component_change_detection.rs | ||
custom_query_param.rs | ||
ecs_guide.rs | ||
event.rs | ||
fixed_timestep.rs | ||
generic_system.rs | ||
hierarchy.rs | ||
iter_combinations.rs | ||
nondeterministic_system_order.rs | ||
one_shot_systems.rs | ||
parallel_query.rs | ||
removal_detection.rs | ||
run_conditions.rs | ||
startup_system.rs | ||
state.rs | ||
system_closure.rs | ||
system_param.rs | ||
system_piping.rs |