-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Move run_if
to IntoSystem
#14576
Comments
Run conditions still need to work on system sets. If anyone tries their hand at this change, that's the critical requirement that I don't think will be solved by simply moving the method. |
Rust compiler would nag when both |
Yeah, I think it would likely end up ambiguous, which is no fun at all and would seriously degrade UX. By the way, |
I guess |
Most likely yeah. Fingers crossed we can get everything in place for 0.15 though! |
Good news! I could work around it pretty easy by pipeing the bool into my system as an |
Is this the case if we get entity disabling? |
What problem does this solve or what need does it fill?
I am using
bevy_eventlistener
to listen for events and want to have a run condition on the runned system.However,
run_if
is only implemented forIntoSystemConfigs
, notIntoSystem
, where onlypipe
andmap
exist, which both don't really help me.What solution would you like?
Move / implement
run_if
forIntoSystem
What alternative(s) have you considered?
Hand-wiring the two systems together.
The text was updated successfully, but these errors were encountered: