You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem you are trying to solve.
Entt allows retrieving n components in 1 go with the following syntax:
auto & [pos, vel] = registry.get<Position, Velocity>(entity);
This is a really nice feature and it would be great if it could be added to flecs. I know flecs allows retrieving multiple components with a lambda but I prefer the components in my local scope without a lambda.
Bonus points if we could get a mutable version as well. For example entity.get_all<Position, Velocity>() and entity.get_all_mut<Position, Velocity>().