2022-01-01 21:22:04 +00:00
|
|
|
#![warn(missing_docs)]
|
|
|
|
//! This module is separated into its own crate to enable simple dynamic linking for Bevy, and should not be used directly
|
|
|
|
|
2020-11-10 03:26:08 +00:00
|
|
|
/// `use bevy::prelude::*;` to import common components, bundles, and plugins.
|
|
|
|
pub mod prelude;
|
|
|
|
|
|
|
|
mod default_plugins;
|
|
|
|
pub use default_plugins::*;
|
|
|
|
|
|
|
|
pub mod app {
|
|
|
|
//! Build bevy apps, create plugins, and read events.
|
|
|
|
pub use bevy_app::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod asset {
|
|
|
|
//! Load and store assets and resources for Apps.
|
|
|
|
pub use bevy_asset::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod core {
|
|
|
|
//! Contains core plugins and utilities for time.
|
|
|
|
pub use bevy_core::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod diagnostic {
|
|
|
|
//! Useful diagnostic plugins and types for bevy apps.
|
|
|
|
pub use bevy_diagnostic::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod ecs {
|
|
|
|
//! Bevy's entity-component-system.
|
|
|
|
pub use bevy_ecs::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod input {
|
|
|
|
//! Resources and events for inputs, e.g. mouse/keyboard, touch, gamepads, etc.
|
|
|
|
pub use bevy_input::*;
|
|
|
|
}
|
|
|
|
|
2020-11-13 01:23:57 +00:00
|
|
|
pub mod log {
|
|
|
|
//! Logging capabilities
|
|
|
|
pub use bevy_log::*;
|
|
|
|
}
|
|
|
|
|
2020-11-10 03:26:08 +00:00
|
|
|
pub mod math {
|
|
|
|
//! Math types (Vec3, Mat4, Quat, etc) and helpers.
|
|
|
|
pub use bevy_math::*;
|
|
|
|
}
|
|
|
|
|
2022-05-04 19:16:10 +00:00
|
|
|
pub mod ptr {
|
|
|
|
//! Utilities for working with untyped pointers in a more safe way.
|
|
|
|
pub use bevy_ptr::*;
|
|
|
|
}
|
|
|
|
|
2020-11-28 00:39:59 +00:00
|
|
|
pub mod reflect {
|
|
|
|
// TODO: remove these renames once TypeRegistryArc is no longer required
|
|
|
|
//! Type reflection used for dynamically interacting with rust types.
|
|
|
|
pub use bevy_reflect::{
|
|
|
|
TypeRegistry as TypeRegistryInternal, TypeRegistryArc as TypeRegistry, *,
|
|
|
|
};
|
2020-11-10 03:26:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
pub mod scene {
|
|
|
|
//! Save/load collections of entities and components to/from file.
|
|
|
|
pub use bevy_scene::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod tasks {
|
|
|
|
//! Pools for async, IO, and compute tasks.
|
|
|
|
pub use bevy_tasks::*;
|
|
|
|
}
|
|
|
|
|
2022-03-15 01:54:05 +00:00
|
|
|
pub mod hierarchy {
|
|
|
|
//! Entity hierarchies and property inheritance
|
|
|
|
pub use bevy_hierarchy::*;
|
|
|
|
}
|
|
|
|
|
2020-11-10 03:26:08 +00:00
|
|
|
pub mod transform {
|
|
|
|
//! Local and global transforms (e.g. translation, scale, rotation).
|
|
|
|
pub use bevy_transform::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod utils {
|
2022-01-01 21:22:04 +00:00
|
|
|
//! Various miscellaneous utilities for easing development
|
2020-11-10 03:26:08 +00:00
|
|
|
pub use bevy_utils::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
pub mod window {
|
|
|
|
//! Configuration, creation, and management of one or more windows.
|
|
|
|
pub use bevy_window::*;
|
|
|
|
}
|
|
|
|
|
2022-04-02 22:36:02 +00:00
|
|
|
#[cfg(feature = "bevy_animation")]
|
|
|
|
pub mod animation {
|
|
|
|
//! Provides types and plugins for animations.
|
|
|
|
pub use bevy_animation::*;
|
|
|
|
}
|
|
|
|
|
2020-11-10 03:26:08 +00:00
|
|
|
#[cfg(feature = "bevy_audio")]
|
|
|
|
pub mod audio {
|
|
|
|
//! Provides types and plugins for audio playback.
|
|
|
|
pub use bevy_audio::*;
|
|
|
|
}
|
|
|
|
|
2021-07-28 21:29:32 +00:00
|
|
|
#[cfg(feature = "bevy_core_pipeline")]
|
|
|
|
pub mod core_pipeline {
|
|
|
|
//! Core render pipeline.
|
|
|
|
pub use bevy_core_pipeline::*;
|
|
|
|
}
|
|
|
|
|
2021-01-03 19:36:42 +00:00
|
|
|
#[cfg(feature = "bevy_gilrs")]
|
|
|
|
pub mod gilrs {
|
2022-01-09 23:20:13 +00:00
|
|
|
//! Bevy interface with `GilRs` - "Game Input Library for Rust" - to handle gamepad inputs.
|
2021-01-03 19:36:42 +00:00
|
|
|
pub use bevy_gilrs::*;
|
|
|
|
}
|
|
|
|
|
2020-11-10 03:26:08 +00:00
|
|
|
#[cfg(feature = "bevy_gltf")]
|
|
|
|
pub mod gltf {
|
|
|
|
//! Support for GLTF file loading.
|
|
|
|
pub use bevy_gltf::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(feature = "bevy_pbr")]
|
|
|
|
pub mod pbr {
|
|
|
|
//! Physically based rendering.
|
|
|
|
pub use bevy_pbr::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(feature = "bevy_render")]
|
|
|
|
pub mod render {
|
|
|
|
//! Cameras, meshes, textures, shaders, and pipelines.
|
2022-02-16 21:17:37 +00:00
|
|
|
//! Use [`RenderDevice::features`](bevy_render::renderer::RenderDevice::features),
|
|
|
|
//! [`RenderDevice::limits`](bevy_render::renderer::RenderDevice::limits), and the
|
|
|
|
//! [`WgpuAdapterInfo`](bevy_render::render_resource::WgpuAdapterInfo) resource to
|
|
|
|
//! get runtime information about the actual adapter, backend, features, and limits.
|
2020-11-10 03:26:08 +00:00
|
|
|
pub use bevy_render::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(feature = "bevy_sprite")]
|
|
|
|
pub mod sprite {
|
|
|
|
//! Items for sprites, rects, texture atlases, etc.
|
|
|
|
pub use bevy_sprite::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(feature = "bevy_text")]
|
|
|
|
pub mod text {
|
|
|
|
//! Text drawing, styling, and font assets.
|
|
|
|
pub use bevy_text::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(feature = "bevy_ui")]
|
|
|
|
pub mod ui {
|
|
|
|
//! User interface components and widgets.
|
|
|
|
pub use bevy_ui::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(feature = "bevy_winit")]
|
|
|
|
pub mod winit {
|
2022-01-01 21:22:04 +00:00
|
|
|
//! Window creation, configuration, and handling
|
2020-11-10 03:26:08 +00:00
|
|
|
pub use bevy_winit::*;
|
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(feature = "bevy_dynamic_plugin")]
|
|
|
|
pub mod dynamic_plugin {
|
2022-01-01 21:22:04 +00:00
|
|
|
//! Dynamic linking of plugins
|
2020-11-10 03:26:08 +00:00
|
|
|
pub use bevy_dynamic_plugin::*;
|
|
|
|
}
|
2020-11-12 21:26:48 +00:00
|
|
|
|
|
|
|
#[cfg(target_os = "android")]
|
|
|
|
pub use ndk_glue;
|