What I'd like to do is...
Instead of
fn system(query: Query<(&A, &B)>) {
...
for (a, b) in query.iter {
...
}
I would like to
fn system(query: Query<&MyStructType>) {
...
for MyStructType{ a, b } in query.iter {
...
}
I'll happily elaborate if it helps.
I believe I want my type to implement WorldQuery but it looks like there are many ways to get lost in this code. I could cheat and make the type's ::new() function take a tuple, but that seems yuck and would add another line. ๐