Skip to content
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

Implement Clone for CombinatorSystem #8826

Merged
merged 1 commit into from
Jun 12, 2023

Conversation

yyogo
Copy link
Contributor

@yyogo yyogo commented Jun 12, 2023

Objective

Make a combined system cloneable if both systems are cloneable on their own. This is necessary for using chained conditions (e.g cond1.and_then(cond2)) with distributive_run_if().

Solution

Implement Clone for CombinatorSystem<Func, A, B> where A, B: Clone.

@github-actions
Copy link
Contributor

Welcome, new contributor!

Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨

Where `A, B: Clone`. Needed in order to use chained conditions with
`distributive_run_if`.
@james7132 james7132 added A-ECS Entities, components, systems, and events C-Usability A targeted quality-of-life change that makes Bevy easier to use labels Jun 12, 2023
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Jun 12, 2023
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Jun 12, 2023
Merged via the queue into bevyengine:main with commit c475e27 Jun 12, 2023
@yyogo yyogo deleted the cloneable_combinators branch June 12, 2023 22:06
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-Usability A targeted quality-of-life change that makes Bevy easier to use S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants