Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a With and Without QueryItem Implementation To Avoid Resorting to iter_with_bitset() #492

Open
zicklag opened this issue Dec 6, 2024 · 0 comments

Comments

@zicklag
Copy link
Member

zicklag commented Dec 6, 2024

A friend of mine just ran into the need to iterate over entities with a component, but not wanting to borrow the component store during iteration.

Right now the only way to do that is to resort to using entities.iter_with_bitset() and manually combining the bitsets from the components. We should implement some kind of QueryItem that allows you to use the normal entities.iter_with(), but without actually borrowing the component store, if possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant