mirror of
https://github.com/bevyengine/bevy
synced 2025-01-04 17:28:56 +00:00
e03f17ba7f
add bevy_log plugin
18 lines
486 B
Rust
18 lines
486 B
Rust
mod diagnostic;
|
|
mod frame_time_diagnostics_plugin;
|
|
mod print_diagnostics_plugin;
|
|
pub use diagnostic::*;
|
|
pub use frame_time_diagnostics_plugin::FrameTimeDiagnosticsPlugin;
|
|
pub use print_diagnostics_plugin::PrintDiagnosticsPlugin;
|
|
|
|
use bevy_app::prelude::*;
|
|
|
|
/// Adds core diagnostics resources to an App.
|
|
#[derive(Default)]
|
|
pub struct DiagnosticsPlugin;
|
|
|
|
impl Plugin for DiagnosticsPlugin {
|
|
fn build(&self, app: &mut AppBuilder) {
|
|
app.init_resource::<Diagnostics>();
|
|
}
|
|
}
|