Ralith / hecs

A handy ECS
Apache License 2.0
967 stars 82 forks source link

Introduce World::query_many_mut #362

Closed Ralith closed 9 months ago

Ralith commented 9 months ago

CC @sanbox-irl

Bikeshed: It's a bit unfortunate that View::get_mut_n is named in a different pattern, but query_one_mut_n would be really silly. query_n_mut is also a possibility, but is inconsistent with the proposed std [T]::get_many_mut, and if we're going to be internally inconsistent, we might as well take the opportunity to mirror std.