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 the OneOf<A, B, C> pseudo-struct decorator in the parameter section of queries #4

Closed
recatek opened this issue May 23, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@recatek
Copy link
Owner

recatek commented May 23, 2023

Allow queries to specify their parameters in the form of |foo: OneOf<ComponentA, ComponentB, ComponentC>|, which will match any archetype with any of those components. There are several situations where this could result in ambiguity, but each can be detected and reported as a compile-time error.

@recatek recatek added the enhancement New feature or request label May 23, 2023
@recatek recatek changed the title Add the AnyOf<A, B, C> pseudo-struct decorator in the parameter section of queries Add the OneOf<A, B, C> pseudo-struct decorator in the parameter section of queries Jun 4, 2023
@recatek recatek closed this as completed in e89e877 Jun 4, 2023
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

1 participant