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

Query for per-component access #271

Open
kvark opened this issue Jun 26, 2022 · 0 comments
Open

Query for per-component access #271

kvark opened this issue Jun 26, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@kvark
Copy link

kvark commented Jun 26, 2022

There is Archetype::access method for a query, and it can tell if the entities are mutated or not. What I want is a way to enforce borrowing rules at run-time, when implementing a scheduler. This means, for example, that query A can mutate component X, while query B mutates component Y, at the same time. The current access API would just tell me that both A and B mutate the entities, which is insufficient to know if they can be done together.

The function I need would return a list (or an iterator) of pairs (component, access) for a given query.

@Ralith Ralith added the enhancement New feature or request label Jul 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants