Component Lifecycle Query Filters
xentripetal opened this issue · 0 comments
xentripetal commented
It would be very helpful if query descriptions had support for defining filters based on the lifecycle of components.
Mainly:
- Added<T> - Evaluates to true when component T was added to an entity since the last execution of the query
- Removed<T> - Evaluates to true when component T was removed from an entity since the last execution of the query
- 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.