1 messages · Page 1 of 1 (latest)
For example, given the component enum:
#[derive(Component)]
enum Foo {
Bar,
Baz
}
and the query:
Query<(&ArbitraryComponent, &Foo)>
Is there an easy way I could refine the query such that each item ALWAYS has the value Foo::Bar?
The goal would be to use the .contains function on a subset of the query.
Perhaps I should opt to use two separate components instead of an enum component?