
# Objective - I want to take screenshots of examples in CI to help with validation of changes ## Solution - Can override how much time is updated per frame - Can specify on which frame to take a screenshots - Save screenshots in CI I reused the `TimeUpdateStrategy::ManualDuration` to be able to set the time update strategy to a fixed duration every frame. Its previous meaning didn't make much sense to me. This change makes it possible to have screenshots that are exactly the same across runs. If this gets merged, I'll add visual comparison of screenshots between runs to ensure nothing gets broken ## Migration Guide * `TimeUpdateStrategy::ManualDuration` meaning has changed. Instead of setting time to `Instant::now()` plus the given duration, it sets time to last update plus the given duration.
37 lines
864 B
Rust
37 lines
864 B
Rust
//! This crate is about everything concerning the highest-level, application layer of a Bevy app.
|
|
|
|
#![warn(missing_docs)]
|
|
#![allow(clippy::type_complexity)]
|
|
|
|
mod app;
|
|
mod main_schedule;
|
|
mod plugin;
|
|
mod plugin_group;
|
|
mod schedule_runner;
|
|
|
|
#[cfg(feature = "bevy_ci_testing")]
|
|
pub mod ci_testing;
|
|
|
|
pub use app::*;
|
|
pub use bevy_derive::DynamicPlugin;
|
|
pub use main_schedule::*;
|
|
pub use plugin::*;
|
|
pub use plugin_group::*;
|
|
pub use schedule_runner::*;
|
|
|
|
#[allow(missing_docs)]
|
|
pub mod prelude {
|
|
#[cfg(feature = "bevy_reflect")]
|
|
#[doc(hidden)]
|
|
pub use crate::AppTypeRegistry;
|
|
#[doc(hidden)]
|
|
pub use crate::{
|
|
app::App,
|
|
main_schedule::{
|
|
First, FixedUpdate, Last, Main, PostStartup, PostUpdate, PreStartup, PreUpdate,
|
|
Startup, StateTransition, Update,
|
|
},
|
|
DynamicPlugin, Plugin, PluginGroup,
|
|
};
|
|
}
|