mirror of
https://github.com/bevyengine/bevy
synced 2025-01-12 13:18:55 +00:00
55c84cc722
Added a `HeadlessPlugins` plugin group, that adds more default functionality (like logging) than the `MinimumPlugins`. Fixes #15203 Changed the headless example to use the new plugin group. I am not entirely sure if the list of plugins is correct. Are there ones that should be added / removed? ---- The `TerminalCtrlCHandlerPlugin` has interesting effects in the headless example: Installing it a second time it will give a log message about skipping installation, because it is already installed. Ctrl+C will terminate the application in that case. However, _not_ installing it the second time (so only on the app that runs once) has the effect that the app that runs continuously cannot be stopped using Ctrl+C. This implies that, even though the second app did not install the Ctrl+C handler, it did _something_ because it was keeping the one from the first app alive. Not sure if this is a problem or issue, or can be labeled a wierd quirk of having multiple Apps in one executable.
73 lines
1.6 KiB
Rust
73 lines
1.6 KiB
Rust
#[doc(hidden)]
|
|
pub use crate::{
|
|
app::prelude::*, core::prelude::*, ecs::prelude::*, hierarchy::prelude::*, input::prelude::*,
|
|
log::prelude::*, math::prelude::*, reflect::prelude::*, time::prelude::*,
|
|
transform::prelude::*, utils::prelude::*, window::prelude::*, DefaultPlugins, HeadlessPlugins,
|
|
MinimalPlugins,
|
|
};
|
|
|
|
pub use bevy_derive::{bevy_main, Deref, DerefMut};
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_asset")]
|
|
pub use crate::asset::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_audio")]
|
|
pub use crate::audio::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_animation")]
|
|
pub use crate::animation::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_color")]
|
|
pub use crate::color::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_core_pipeline")]
|
|
pub use crate::core_pipeline::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_pbr")]
|
|
pub use crate::pbr::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_render")]
|
|
pub use crate::render::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_scene")]
|
|
pub use crate::scene::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_sprite")]
|
|
pub use crate::sprite::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_text")]
|
|
pub use crate::text::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_ui")]
|
|
pub use crate::ui::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_gizmos")]
|
|
pub use crate::gizmos::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_gilrs")]
|
|
pub use crate::gilrs::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_state")]
|
|
pub use crate::state::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_gltf")]
|
|
pub use crate::gltf::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_picking")]
|
|
pub use crate::picking::prelude::*;
|