-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Add generic "relations" iteration to bevy_hierarchy
#15426
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
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8d3558c to
1b2d84a
Compare
1b2d84a to
17bc758
Compare
Once the `*_world_entities` reflect methods are removed, we can also remove the distinction between the two and consolidate to a single `RelfectMapEntities` that isn't bound by `T: Component`.
cf51093 to
b4296fa
Compare
Member
|
Wow, that's super neat! This really makes me prefer the latter proposal. |
b4296fa to
314f0df
Compare
314f0df to
cc1dcd7
Compare
cc1dcd7 to
fa19553
Compare
fa19553 to
0820b49
Compare
0820b49 to
8700e11
Compare
8700e11 to
54f2fef
Compare
e859a11 to
6260929
Compare
202393c to
e1dea3b
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-ECS
Entities, components, systems, and events
C-Feature
A new feature, making something new possible
D-Modest
A "normal" level of difficulty; suitable for simple features or challenging fixes
M-Release-Note
Work that should be called out in the blog due to impact
S-Waiting-on-Author
The author needs to make changes or address concerns before this can be merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Builds on #15425
Objective
VisitEntitiesfor generic and reflectable Entity iteration #15425Solution
With #15425, we have a trait encapsulating iteration over entity-containing components. This effectively becomes the "entity relation" trait for components, which we can target generically in the
HierarchyQueryExtinstead of the concreteParentandChildrentypes.Testing
TODO