-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Named observer #18797
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
base: main
Are you sure you want to change the base?
Named observer #18797
Conversation
I would prefer to not introduce a special-cased API for this. Observers will be increasingly component driven (I might even push for deprecation of |
in this component driven style, the |
I agree with Cart in #18726 (comment). Can you explain why you feel this should be merged as is, rather than pursuing that line? |
This is as a draft exactly because i don't think it should be merged as-is, either it requires changes or the path that we will take is a different one, which is more likely given the talks |
Observers would still be standalone entities, but they would define their targets via relationships (either in addition to manually defined targets on the descriptor, or instead of that). Final design is TBD but that is the general idea. |
on the lines of |
Indeed, that's why #17607 is stalled out :) |
Objective
Closes #18726
Solution
add_named_observer
toApp
andWorld
observe_named
toEntityCommands
andEntityWorldMut
Showcase
TODO
add_named_observer
observe_named