recatek / gecs

a generated entity component system 🦎

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add the OneOf<A, B, C> pseudo-struct decorator in the parameter section of queries

recatek opened this issue · comments

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.