-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Merged by Bors] - Add timer-based common run conditions (on_timer
and on_fixed_timer
)
#7866
Conversation
Welcome, new contributor! Please make sure you've read our contributing guide and we look forward to reviewing your pull request shortly ✨ |
I would prefer to not add the full bevy dependency just for doc tests... For an example, see bevy/crates/bevy_log/src/lib.rs Lines 49 to 61 in 91ff782
Also you can hide lines not relevant by adding a |
Good call! I made the change. The only disadvantage is that the sample no longer includes the |
timer.tick(time.delta()); | ||
timer.just_finished() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you can do timer.tick(time.delta()).just_finished()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
Pull request successfully merged into main. Build succeeded:
|
on_timer
and on_fixed_timer
)on_timer
and on_fixed_timer
)
…`) (bevyengine#7866) # Objective Fixes bevyengine#7864 ## Solution Add the run conditions described in the issue. Also needed to add `bevy` as a dev dependency to `bevy_time` so the doctests can run. --- ## Changelog - Add `on_timer` and `on_fixed_timer` run conditions
Objective
Fixes #7864
Solution
Add the run conditions described in the issue. Also needed to add
bevy
as a dev dependency tobevy_time
so the doctests can run.Changelog
on_timer
andon_fixed_timer
run conditions