bevy/src/prelude.rs

46 lines
1.7 KiB
Rust
Raw Normal View History

pub use crate::AddDefaultPlugins;
pub use crate::app::{App, AppBuilder, AppPlugin, EntityArchetype, EventReader, Events, GetEventReader};
#[cfg(feature = "asset")]
pub use crate::asset::{Asset, AssetStorage, Handle};
#[cfg(feature = "derive")]
pub use crate::derive::*;
#[cfg(feature = "transform")]
pub use crate::transform::prelude::*;
#[cfg(feature = "core")]
pub use crate::core::{
time::Time,
transform::{CommandBufferBuilderSource, WorldBuilder, WorldBuilderSource},
2020-01-14 03:20:58 +00:00
};
#[cfg(feature = "diagnostic")]
pub use crate::diagnostic::DiagnosticsPlugin;
2020-01-14 03:20:58 +00:00
pub use legion::{
2020-03-30 06:51:13 +00:00
command::CommandBuffer,
entity::Entity,
event::Event as LegionEvent,
filter::filter_fns::*,
query::{IntoQuery, Query, Read, Tagged, TryRead, TryWrite, Write},
2020-03-09 06:19:07 +00:00
systems::{
2020-03-30 06:51:13 +00:00
bit_set::BitSet,
resource::{ResourceSet, Resources},
schedule::{Executor, Runnable, Schedulable, Schedule},
2020-03-30 21:53:32 +00:00
SubWorld, System, SystemBuilder,
2020-03-09 06:19:07 +00:00
},
2020-03-30 21:53:32 +00:00
world::{Universe, World},
2020-01-14 03:20:58 +00:00
};
pub use crate::math::{self, Mat3, Mat4, Quat, Vec2, Vec3, Vec4};
#[cfg(feature = "render")]
pub use crate::render::{
entity::*,
mesh::{Mesh, MeshType},
pipeline::PipelineDescriptor,
render_graph::RenderGraph,
render_resource::{resource_name, resource_providers::UniformResourceProvider, AssetBatchers},
shader::{uniforms::StandardMaterial, Shader, ShaderDefSuffixProvider, ShaderStage},
texture::{Texture, TextureType},
ActiveCamera, ActiveCamera2d, Camera, CameraType, Color, ColorSource, Light, Renderable,
};
#[cfg(feature = "ui")]
pub use crate::ui::{entity::*, Anchors, Margins, Node};
#[cfg(feature = "window")]
pub use crate::window::{Window, WindowDescriptor, WindowPlugin, Windows};