#Turn `QueryState` to `Query`

1 messages · Page 1 of 1 (latest)

woven vortex
#

I'm trying to pass queries down to single functions to avoid passing the whole &mut World and keep at least a bit of encapsulation. I've only found .query() and .query_filtered(), which return QueryStates, and that kind of defeats the point. Any ideas?

distant lily
#

SystemState helps! Also you can convert query state into query using a method on querystate

woven vortex
#

and what would be the method on querystate?

distant lily
#

Uh I was looking this up the other day... On my phone ATM, but I'll try to find out once I'm up for the day

woven vortex
#

maybe get_param?

#

but that has a scary safety note

distant lily