-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 methods iter_resources
and iter_resources_mut
#12829
Conversation
@coreh I'd like to get your review on this |
Clean and useful. I really want this for bevy_dev_tools, and I think it's a good building block regardless. |
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good implementation and documentation 👍
Waiting a day or two to see if we can get another set of eyes on this :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with the state of this and the unsafe parts looks pretty much straightforward, but I think we should probably add safety comments in the docs examples, just so we can show our unsafe parts in examples.
btw, there's a typo too.
Co-authored-by: James Liu <contact@jamessliu.com> Co-authored-by: Pablo Reinhardt <126117294+pablo-lua@users.noreply.github.com>
Co-authored-by: James Liu <contact@jamessliu.com>
# Objective - Closes bevyengine#12019 - Related to bevyengine#4955 - Useful for dev_tools and networking ## Solution - Create `World::iter_resources()` and `World::iter_resources_mut()` --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com> Co-authored-by: James Liu <contact@jamessliu.com> Co-authored-by: Pablo Reinhardt <126117294+pablo-lua@users.noreply.github.com>
Thank you to everyone involved with the authoring or reviewing of this PR! This work is relatively important and needs release notes! Head over to bevyengine/bevy-website#1296 if you'd like to help out. |
Objective
World::iter_resources()
andWorld::iter_resources_mut()
methods #12019Solution
World::iter_resources()
andWorld::iter_resources_mut()