-
-
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
Replace IntoSystemSetConfig
with IntoSystemSetConfigs
#9247
Conversation
Example |
2ad6fc9
to
1ed6a01
Compare
1ed6a01
to
35875a5
Compare
Example |
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 really like the refactor; this is way cleaner and easier to review. I think we can make the doc strings nicer, but as long as you explicitly work in the concept of "chaining == system ordering" I'll be happy to approve.
Example |
4 similar comments
Example |
Example |
Example |
Example |
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
34b5c95
to
369ec9e
Compare
…#9247) # Objective - Fixes bevyengine#9244. ## Solution - Changed the `(Into)SystemSetConfigs` traits and structs be more like the `(Into)SystemConfigs` traits and structs. - Replaced uses of `IntoSystemSetConfig` with `IntoSystemSetConfigs` - Added generic `ItemConfig` and `ItemConfigs` types. - Changed `SystemConfig(s)` and `SystemSetConfig(s)` to be type aliases to `ItemConfig(s)`. - Added generic `process_configs` to `ScheduleGraph`. - Changed `configure_sets_inner` and `add_systems_inner` to reuse `process_configs`. --- ## Changelog - Added `run_if` to `IntoSystemSetConfigs` - Deprecated `Schedule::configure_set` and `App::configure_set` - Removed `IntoSystemSetConfig` ## Migration Guide - Use `App::configure_sets` instead of `App::configure_set` - Use `Schedule::configure_sets` instead of `Schedule::configure_set` --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Objective
configure_set
& makeconfigure_sets
work for single params. #9244.Solution
(Into)SystemSetConfigs
traits and structs be more like the(Into)SystemConfigs
traits and structs.IntoSystemSetConfig
withIntoSystemSetConfigs
ItemConfig
andItemConfigs
types.SystemConfig(s)
andSystemSetConfig(s)
to be type aliases toItemConfig(s)
.process_configs
toScheduleGraph
.configure_sets_inner
andadd_systems_inner
to reuseprocess_configs
.Changelog
run_if
toIntoSystemSetConfigs
Schedule::configure_set
andApp::configure_set
IntoSystemSetConfig
Migration Guide
App::configure_sets
instead ofApp::configure_set
Schedule::configure_sets
instead ofSchedule::configure_set