Crate bevy_mod_value_filter

Source
Expand description

This crate has for goal to enable filtering in the bevy’s Query by value for a given Component. It is usefull when the component has the following form:

#[derive(Component)]
struct Poisoned(bool);

Structs§

Check
Filter that selects entities with a component T, if the given Predicate is satisfied.
Is
A Predicate that checks if the provided T, coerced into a bool, equals the given VALUE.
Not
A Predicate that returns the negation of the given predicate.

Traits§

Predicate
A trait for implementing versatile pre-filtering of Components.

Type Aliases§

CheckNot
The negation of Check.
IsFalse
Query filter for checking if the component T is coercable as false.
IsTrue
Query filter for checking if the component T is coercable as true.