Skip to content
This repository has been archived by the owner on Jun 1, 2022. It is now read-only.

Extend component query behaviour: AND, OR, NOT #2

Closed
fernandojsg opened this issue May 16, 2019 · 2 comments
Closed

Extend component query behaviour: AND, OR, NOT #2

fernandojsg opened this issue May 16, 2019 · 2 comments

Comments

@fernandojsg
Copy link
Member

fernandojsg commented May 16, 2019

Currently the query on the systems will look for entities with all the components on the list.

[Transform, Rotating] => Transform AND Rotating

We should be able to modify the query to do things like:

[ [Transform, Rotating], [Scale], [NOT(Transform), PulsatingColor]]
=> (Transform AND Rotating) OR (Scale) OR (!Transform AND PulsatingColor)
@fernandojsg
Copy link
Member Author

I haven't seen OR used, for that it's better to use another query

@fernandojsg
Copy link
Member Author

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant