diff --git a/Cargo.toml b/Cargo.toml index b8424e3..c4b3eae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,9 +8,15 @@ edition = "2021" [dependencies] bevy = { version = "0.12", default-features = false, features = ["bevy_pbr", "bevy_render", "bevy_asset", "animation", "bevy_animation"]} +serde = "1" [dev-dependencies] bevy = { version = "0.12", default-features = true } +dexterous_developer = "0.1" +bevy-inspector-egui = "0.22" - +[[example]] +name = "simple_example" +path = "examples/simple_example.rs" +crate-type = ["dylib"] \ No newline at end of file diff --git a/examples/simple_example.rs b/examples/simple_example.rs index 9885678..b14ffd1 100644 --- a/examples/simple_example.rs +++ b/examples/simple_example.rs @@ -1,9 +1,13 @@ use bevy::{pbr::{CascadeShadowConfigBuilder, DirectionalLightShadowMap}, prelude::*}; +use bevy_inspector_egui::quick::WorldInspectorPlugin; +use dexterous_developer::{hot_bevy_main, InitialPlugins}; -fn main() { +#[hot_bevy_main] +pub fn bevy_main(initial_plugins: impl InitialPlugins) { App::new() + .add_plugins(initial_plugins.initialize::()) + .add_plugins(WorldInspectorPlugin::new()) .insert_resource(DirectionalLightShadowMap { size: 4096 }) - .add_plugins(DefaultPlugins) .add_systems(Startup, setup) .run(); } @@ -40,4 +44,5 @@ fn setup(mut commands: Commands, asset_server: Res) { scene: asset_server.load("example.gltf#Scene0"), ..default() }); -} \ No newline at end of file +} +