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 :with to world query #92

Open
Velover opened this issue Jul 22, 2024 · 0 comments
Open

Add :with to world query #92

Velover opened this issue Jul 22, 2024 · 0 comments
Labels
feature New feature or request

Comments

@Velover
Copy link

Velover commented Jul 22, 2024

the matter has .without

is it possible to add something like .withAll (from Unity ECS)

it filters all entities with this component but doesn't include it in the iterator

world.query(position_component).with(enemy_component)
-- will return all entities with position_component and enemy_component ,but dont pass enemy_component

this is useful for situations if you only need position_component and not the enemy_component

@Velover Velover added the feature New feature or request label Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant