bevy/src/prelude.rs

73 lines
2.5 KiB
Rust
Raw Normal View History

#[cfg(feature = "asset")]
2020-05-16 07:27:30 +00:00
pub use crate::asset::{AddAsset, AssetEvent, AssetServer, Assets, Handle};
#[cfg(feature = "core")]
pub use crate::core::{
2020-06-04 02:53:41 +00:00
time::{Time, Timer},
transform::{CommandBufferBuilderSource, WorldBuilder, WorldBuilderSource},
2020-01-14 03:20:58 +00:00
};
#[cfg(feature = "derive")]
pub use crate::derive::*;
#[cfg(feature = "diagnostic")]
pub use crate::diagnostic::DiagnosticsPlugin;
#[cfg(feature = "pbr")]
2020-04-25 01:55:15 +00:00
pub use crate::pbr::{entity::*, light::Light, material::StandardMaterial};
#[cfg(feature = "property")]
pub use crate::property::{DynamicProperties, Properties, PropertiesVal, Property, PropertyVal};
#[cfg(feature = "render")]
pub use crate::render::{
2020-04-25 01:55:15 +00:00
draw_target,
entity::*,
2020-04-25 01:55:15 +00:00
mesh::{shape, Mesh},
pipeline::PipelineDescriptor,
2020-04-25 01:55:15 +00:00
render_graph::{
nodes::{
AssetUniformNode, CameraNode, PassNode, UniformNode, WindowSwapChainNode,
2020-04-25 01:55:15 +00:00
WindowTextureNode,
},
RenderGraph,
},
shader::{Shader, ShaderDefSuffixProvider, ShaderStage, ShaderStages},
texture::{Texture, TextureType},
Camera, Color, ColorSource, OrthographicProjection, PerspectiveProjection, Renderable,
};
2020-05-22 00:21:33 +00:00
#[cfg(feature = "scene")]
pub use crate::scene::{Scene, SceneSpawner};
#[cfg(feature = "sprite")]
2020-06-04 03:08:20 +00:00
pub use crate::sprite::{
entity::{SpriteEntity, SpriteSheetEntity},
ColorMaterial, Quad, Sprite, SpriteSheet, SpriteSheetSprite,
};
2020-05-13 20:09:32 +00:00
#[cfg(feature = "text")]
pub use crate::text::Font;
#[cfg(feature = "transform")]
pub use crate::transform::prelude::*;
#[cfg(feature = "type_registry")]
pub use crate::type_registry::RegisterType;
#[cfg(feature = "ui")]
pub use crate::ui::{entity::*, widget::Label, Anchors, Margins, Node};
#[cfg(feature = "window")]
pub use crate::window::{Window, WindowDescriptor, WindowPlugin, Windows};
pub use crate::{
app::{
2020-05-06 01:44:32 +00:00
schedule_runner::ScheduleRunnerPlugin, stage, App, AppBuilder, AppPlugin, EntityArchetype,
EventReader, Events, FromResources, GetEventReader, System,
},
math::{self, Mat3, Mat4, Quat, Vec2, Vec3, Vec4},
AddDefaultPlugins,
};
pub use legion::{
2020-05-14 00:52:47 +00:00
borrow::{Ref as Com, RefMut as ComMut},
2020-04-29 08:37:54 +00:00
command::CommandBuffer,
entity::Entity,
event::Event as LegionEvent,
filter::filter_fns::*,
2020-05-28 20:36:48 +00:00
query::{IntoQuery, Read, Tagged, TryRead, TryWrite, Write},
systems::{
bit_set::BitSet,
2020-05-01 05:30:51 +00:00
resource::{ResourceSet, Resources},
schedule::{Executor, Runnable, Schedulable, Schedule},
IntoSystem, Query, Res, ResMut, SubWorld, SystemBuilder,
},
world::{Universe, World},
};