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

Component Lifecycle Query Filters #190

Open
xentripetal opened this issue Dec 5, 2023 · 0 comments
Open

Component Lifecycle Query Filters #190

xentripetal opened this issue Dec 5, 2023 · 0 comments
Labels
enhancement New feature or request postponed This feature was postponed to a later release.

Comments

@xentripetal
Copy link

It would be very helpful if query descriptions had support for defining filters based on the lifecycle of components.

Mainly:

  1. Added<T> - Evaluates to true when component T was added to an entity since the last execution of the query
  2. Removed<T> - Evaluates to true when component T was removed from an entity since the last execution of the query
  3. Changed<T> - Evaluates to true when component T was accessed mutably or set for the entity since the last execution of the query

This is a feature present in bevy_ecs (Rust), DefaultECS (C#), and Unity DOTS

I'm not sure how feasible this is with Arch's architecture, but figured I'd put the idea out there since I'd love to see it in Arch.

@genaray genaray added postponed This feature was postponed to a later release. enhancement New feature or request labels Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request postponed This feature was postponed to a later release.
Projects
Status: No status
Development

No branches or pull requests

2 participants