Allow to combine "distributive_run_if" with "not" #8329
Labels
A-ECS
Entities, components, systems, and events
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
What problem does this solve or what need does it fill?
Today I just learnt about
distributive_run_if
and wanted to use it on my systems. I managed to do it one place where it was like:Sadly, it was impossible to do same for another set of systems, in the place where I needed to do
not
condition:because of an error:
What solution would you like?
Possibility to use
not(…)
insidedistributive_run_if(…)
.What alternative(s) have you considered?
To overcome that, I created a custom condition which was not using
not
, like this:Additional context
A place in my public repo where I tried to achieve what is visible on the screenshot below:
https://github.com/beetrootpaul/hen-rescue-hero/blob/e5bc1f95e1203deef4424c53836f59b0245547d4/hrh_game/src/game.rs#L62-L72
A screenshot from my IDE:
I use Bevy in version
0.10.1
.The text was updated successfully, but these errors were encountered: