-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
searching for components with specific data #123
Comments
additional information: you could rename |
This seems like a decent idea, but needs more consideration for the precise API and how it fits into our future plans for queries and relationships. |
I would also note that in this specific example, you could benefit from just giving your entities with the |
you are right, I should have thought more about the examples, these examples may not seem very great but in more complex game structures it might pose a benefit. |
@fl215 Are you satisfied with the solutions we've come up with here? If so, we can close the issue. |
Problem
there is some boilerplate in this code that I don't think people should have to always be writing and there could be mistakes done, like writing
return
instead ofcontinue
Proposed solution
fixing this solution by introducing the
where
methodreading it also pretty intuitive:
query Tool where Tool's type is weapon
some more useful examples:
there can also be functions
The text was updated successfully, but these errors were encountered: