-
Notifications
You must be signed in to change notification settings - Fork 11
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
Entity Queries #3
Comments
I've designed a DSL for querying here https://github.com/nicopap/bevy_mod_dynamic_query/tree/main/examples/query_interpreter#query-grammar if you need some inspiration. You can always re-use the bevy type DSL though. |
That looks cool, How will I go from the regular built-in parser to the DSL though? |
I mean, you write a grammar that supports the rust syntax. The full parser for both syntax is defined here https://github.com/nicopap/bevy_mod_dynamic_query/blob/149b5d4a5a3611373b99b83bc9075cbd7d03b01e/examples/query_interpreter/src/query_parser.rs. Similarly to video game FX, no need to support all the intricacies of the rust syntax, it just need to look like it :P |
I meant something like |
Always can use a keyword that it a rust keyword, so that you are sure to avoid overlapping with pre-existing field names. For example |
@nicopap I'd like to use your |
Issues are now re-enabled on |
Thanks! |
Ah turns out my issue is actually not a problem. |
This is currently blocked by either of the following:
|
Currently, you cannot access entities properties. In order to access entities properties we will need entity queries. Entity queries will be a built-in parser feature that will allow you to query the entities you choose and modify them.
Design
Todo list for the design of the entity queries.
Implementation
After the design has been finished, we can start the implementation.
The text was updated successfully, but these errors were encountered: