#Is there a nice API for filtering queries further?

1 messages · Page 1 of 1 (latest)

tiny bobcat
#

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.

tiny bobcat
#

Perhaps I should opt to use two separate components instead of an enum component?