 6d6bc2a8b4
			
		
	
	
		6d6bc2a8b4
		
	
	
	
	
		
			
			This is extracted out of eb8f973646476b4a4926ba644a77e2b3a5772159 and includes some additional changes to remove all references to AppBuilder and fix examples that still used App::build() instead of App::new(). In addition I didn't extract the sub app feature as it isn't ready yet. You can use `git diff --diff-filter=M eb8f973646476b4a4926ba644a77e2b3a5772159` to find all differences in this PR. The `--diff-filtered=M` filters all files added in the original commit but not in this commit away. Co-Authored-By: Carter Anderson <mcanders1@gmail.com>
		
			
				
	
	
		
			25 lines
		
	
	
		
			741 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			741 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
| mod diagnostic;
 | |
| mod entity_count_diagnostics_plugin;
 | |
| mod frame_time_diagnostics_plugin;
 | |
| mod log_diagnostics_plugin;
 | |
| pub use diagnostic::*;
 | |
| pub use entity_count_diagnostics_plugin::EntityCountDiagnosticsPlugin;
 | |
| pub use frame_time_diagnostics_plugin::FrameTimeDiagnosticsPlugin;
 | |
| pub use log_diagnostics_plugin::LogDiagnosticsPlugin;
 | |
| 
 | |
| 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 App) {
 | |
|         app.init_resource::<Diagnostics>();
 | |
|     }
 | |
| }
 | |
| 
 | |
| /// The width which diagnostic names will be printed as
 | |
| /// Plugin names should not be longer than this value
 | |
| pub const MAX_DIAGNOSTIC_NAME_WIDTH: usize = 32;
 |