Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rewin123 committed Sep 16, 2024
1 parent 1c8b9c6 commit 9e9c640
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,16 @@
pub mod prelude {
pub use crate::SpaceEditorPlugin;
pub use space_editor_ui::prelude::*;

#[cfg(feature = "bevy_xpbd_3d")]
pub use space_bevy_xpbd_plugin::prelude::*;
}

pub use space_editor_ui;
pub use space_prefab;

#[cfg(feature = "bevy_xpbd_3d")]
pub use space_bevy_xpbd_plugin;

/// This is the main plugin, connecting it will allow you to use all the functions of space_editor
pub struct SpaceEditorPlugin;

impl bevy::app::Plugin for SpaceEditorPlugin {
fn build(&self, app: &mut bevy::app::App) {
app.add_plugins(space_editor_ui::EditorPlugin);

#[cfg(feature = "bevy_xpbd_3d")]
app.add_plugins(space_bevy_xpbd_plugin::XpbdPlugin);
}
}

0 comments on commit 9e9c640

Please sign in to comment.