finish up import simplification

This commit is contained in:
Carter Anderson 2020-07-16 19:34:18 -07:00
parent 7823c3a9e2
commit 81df34adcf
11 changed files with 35 additions and 15 deletions

View file

@ -15,7 +15,12 @@ pub use once_cell;
pub mod prelude {
pub use crate::{
color::Color, draw::Draw, entity::*, mesh::Mesh, pipeline::RenderPipelines, shader::Shader,
color::Color,
draw::Draw,
entity::*,
mesh::{shape, Mesh},
pipeline::RenderPipelines,
shader::Shader,
texture::Texture,
};
}

View file

@ -7,6 +7,10 @@ pub use loaded_scenes::*;
pub use scene::*;
pub use scene_spawner::*;
pub mod prelude {
pub use crate::{Scene, SceneSpawner};
}
use bevy_app::prelude::*;
use bevy_asset::AddAsset;
use bevy_ecs::IntoThreadLocalSystem;

View file

@ -1,7 +1,8 @@
pub mod collide_aabb;
pub mod entity;
mod color_material;
mod dynamic_texture_atlas_builder;
pub mod entity;
mod rect;
mod render;
mod sprite;
@ -16,6 +17,13 @@ pub use sprite::*;
pub use texture_atlas::*;
pub use texture_atlas_builder::*;
pub mod prelude {
pub use crate::{
entity::{SpriteComponents, SpriteSheetComponents},
ColorMaterial, Sprite, TextureAtlas, TextureAtlasSprite,
};
}
use bevy_app::prelude::*;
use bevy_asset::{AddAsset, Assets, Handle};
use bevy_ecs::IntoQuerySystem;

View file

@ -10,6 +10,10 @@ pub use font_atlas::*;
pub use font_atlas_set::*;
pub use font_loader::*;
pub mod prelude {
pub use crate::{Font, TextStyle};
}
use bevy_app::prelude::*;
use bevy_asset::AddAsset;

View file

@ -12,6 +12,10 @@ pub use node::*;
pub use render::*;
pub use ui_update_system::*;
pub mod prelude {
pub use crate::{entity::*, widget::Label, Anchors, Margins, Node};
}
use bevy_app::prelude::*;
use bevy_ecs::IntoQuerySystem;
use bevy_render::render_graph::RenderGraph;

View file

@ -1,4 +1,4 @@
use bevy::{prelude::*, render::mesh::shape};
use bevy::prelude::*;
fn main() {
App::build()

View file

@ -1,7 +1,6 @@
use bevy::{
diagnostic::{FrameTimeDiagnosticsPlugin, PrintDiagnosticsPlugin},
prelude::*,
render::mesh::shape,
};
use rand::{rngs::StdRng, Rng, SeedableRng};

View file

@ -1,4 +1,4 @@
use bevy::{prelude::*, render::mesh::shape};
use bevy::prelude::*;
fn main() {
App::build()

View file

@ -1,4 +1,4 @@
use bevy::{prelude::*, render::mesh::shape};
use bevy::prelude::*;
#[derive(DynamicAppPlugin)]
pub struct ExamplePlugin;

View file

@ -6,7 +6,7 @@ use bevy::{
render_graph::{CameraNode, PassNode, RenderGraph, WindowSwapChainNode, WindowTextureNode},
texture::{TextureDescriptor, TextureFormat, TextureUsage},
},
window::{CreateWindow, WindowId, WindowReference},
window::{CreateWindow, WindowDescriptor, WindowId, WindowReference},
};
fn main() {

View file

@ -9,15 +9,11 @@ pub use crate::{
pbr::prelude::*,
property::prelude::*,
render::prelude::*,
scene::{Scene, SceneSpawner},
sprite::{
entity::{SpriteComponents, SpriteSheetComponents},
ColorMaterial, Sprite, TextureAtlas, TextureAtlasSprite,
},
text::{Font, TextStyle},
scene::prelude::*,
sprite::prelude::*,
text::prelude::*,
transform::prelude::*,
type_registry::RegisterType,
ui::{entity::*, widget::Label, Anchors, Margins, Node},
window::{Window, WindowDescriptor, WindowPlugin, Windows},
ui::prelude::*,
AddDefaultPlugins,
};