Replace IntoSystemSetConfig with IntoSystemSetConfigs#9247
Replace IntoSystemSetConfig with IntoSystemSetConfigs#9247alice-i-cecile merged 11 commits intobevyengine:mainfrom
IntoSystemSetConfig with IntoSystemSetConfigs#9247Conversation
|
Example |
2ad6fc9 to
1ed6a01
Compare
1ed6a01 to
35875a5
Compare
|
Example |
alice-i-cecile
left a comment
There was a problem hiding this comment.
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_setswork for single params. #9244.Solution
(Into)SystemSetConfigstraits and structs be more like the(Into)SystemConfigstraits and structs.IntoSystemSetConfigwithIntoSystemSetConfigsItemConfigandItemConfigstypes.SystemConfig(s)andSystemSetConfig(s)to be type aliases toItemConfig(s).process_configstoScheduleGraph.configure_sets_innerandadd_systems_innerto reuseprocess_configs.Changelog
run_iftoIntoSystemSetConfigsSchedule::configure_setandApp::configure_setIntoSystemSetConfigMigration Guide
App::configure_setsinstead ofApp::configure_setSchedule::configure_setsinstead ofSchedule::configure_set