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 Removed(), Added(), and Modified() query selectors #15

Open
DavidPeicho opened this issue Feb 15, 2021 · 2 comments
Open

Add Removed(), Added(), and Modified() query selectors #15

DavidPeicho opened this issue Feb 15, 2021 · 2 comments
Labels
feature request New feature or request

Comments

@DavidPeicho
Copy link
Owner

Instead of creating "reactive queries" that sort entities based on added/removed components, I think I will modify the Query class to process queries with extra selectors:

  • Added() → query only process the entity when it's the first tick the component is added
  • Removed() → query only process the entity when the componet has been removed at this tick
  • Modified() → query only process the entity when the componet has been modified at this tick
@DavidPeicho DavidPeicho changed the title Add Removed, Added, and Modified Add Removed(), Added(), and Modified() query selectors Feb 15, 2021
@DavidPeicho DavidPeicho added the feature request New feature or request label Feb 15, 2021
@DavidPeicho
Copy link
Owner Author

Added() and Removed() either need to be implemented by using Command Buffers, or by sending event frm archetypes to queries.

@DavidPeicho
Copy link
Owner Author

Removed() and Added() are actually implemented now at the entity level. More info here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant