Expand description
A collection of run conditions that may be useful in any bevy app.
Functionsยง
- any_
component_ removed - A
Condition
-satisfying system that returnstrue
if there are any entity with a component of the given type removed. - any_
with_ component - A
Condition
-satisfying system that returnstrue
if there are any entities with the given component type. - condition_
changed - Generates a
Condition
that returns true when the passed one changes. - condition_
changed_ to - Generates a
Condition
that returns true when the result of the passed one went from false to true since the last time this was called. - not
- Generates a
Condition
that inverses the result of passed one. - on_
event - A
Condition
-satisfying system that returnstrue
if there are any new events of the given type since it was last called. - resource_
added - A
Condition
-satisfying system that returnstrue
if the resource of the given type has been added since the condition was last checked. - resource_
changed - A
Condition
-satisfying system that returnstrue
if the resource of the given type has had its value changed since the condition was last checked. - resource_
changed_ or_ removed - A
Condition
-satisfying system that returnstrue
if the resource of the given type has had its value changed since the condition was last checked. - resource_
equals - Generates a
Condition
-satisfying closure that returnstrue
if the resource is equal tovalue
. - resource_
exists - A
Condition
-satisfying system that returnstrue
if the resource exists. - resource_
exists_ and_ changed - A
Condition
-satisfying system that returnstrue
if the resource of the given type has had its value changed since the condition was last checked. - resource_
exists_ and_ equals - Generates a
Condition
-satisfying closure that returnstrue
if the resource exists and is equal tovalue
. - resource_
removed - A
Condition
-satisfying system that returnstrue
if the resource of the given type has been removed since the condition was last checked. - run_
once - A
Condition
-satisfying system that returnstrue
on the first time the condition is run and false every time after.