What problem does this solve or what need does it fill?
Reusing system sets is currently challenging: users may for example want to run a collection of systems in several states at once.
What solution would you like?
Add with_system_set to match with_system on the SystemSet struct.
What alternative(s) have you considered?
More completely overhaul / reorganize system sets and scheduling.
Additional context
This should be relatively straightforward for newcomers who want to get to know the ECS a bit better. Follow the impl here:
|
pub fn with_system<Params>(mut self, system: impl IntoSystemDescriptor<Params>) -> Self { |
and push the systems from the new system set into self's corresponding field instead.
What problem does this solve or what need does it fill?
Reusing system sets is currently challenging: users may for example want to run a collection of systems in several states at once.
What solution would you like?
Add
with_system_setto matchwith_systemon theSystemSetstruct.What alternative(s) have you considered?
More completely overhaul / reorganize system sets and scheduling.
Additional context
This should be relatively straightforward for newcomers who want to get to know the ECS a bit better. Follow the impl here:
bevy/crates/bevy_ecs/src/schedule/system_set.rs
Line 94 in c893b99
and push the systems from the new system set into
self's corresponding field instead.