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 relation creation and removal detection to observers #1416

Open
RiscadoA opened this issue Dec 16, 2024 · 0 comments
Open

Add relation creation and removal detection to observers #1416

RiscadoA opened this issue Dec 16, 2024 · 0 comments
Labels
A-Core B-ECS P-Normal This issue isn't a big priority, but it would still be nice to have it closed soon

Comments

@RiscadoA
Copy link
Member

Problem

Currently observers can only detect addition and removal of components, not relations.

Solution

As we have .onAdd<Foo> / .onRemove<Foo>, we should also have .onRelate<ChildOf> and .onUnrelate<ChildOf>.

@RiscadoA RiscadoA added A-Core B-ECS P-Urgent This issue is a big priority, and it would be good to close it ASAP P-Normal This issue isn't a big priority, but it would still be nice to have it closed soon and removed P-Urgent This issue is a big priority, and it would be good to close it ASAP labels Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Core B-ECS P-Normal This issue isn't a big priority, but it would still be nice to have it closed soon
Projects
None yet
Development

No branches or pull requests

1 participant