Split crates
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 7m49s
Some checks failed
Build legacy Nix package on Ubuntu / build (push) Failing after 7m49s
This commit is contained in:
parent
99be029ff8
commit
b977f446d3
16 changed files with 84 additions and 110 deletions
|
@ -1,11 +1,6 @@
|
|||
use bevy_app::App;
|
||||
|
||||
use crate::core::{
|
||||
vulkan,
|
||||
window::{self, config::WindowConfig},
|
||||
};
|
||||
|
||||
pub mod test_plugin;
|
||||
use engine_vulkan::VulkanPlugin;
|
||||
use engine_window::{WindowPlugin, config::WindowConfig};
|
||||
|
||||
pub fn init(app: &mut App) {
|
||||
let window_config = WindowConfig {
|
||||
|
@ -14,11 +9,7 @@ pub fn init(app: &mut App) {
|
|||
height: 600,
|
||||
};
|
||||
|
||||
app.add_plugins((
|
||||
test_plugin::TestPlugin,
|
||||
window::WindowPlugin { window_config },
|
||||
vulkan::VulkanPlugin,
|
||||
));
|
||||
app.add_plugins((WindowPlugin { window_config }, VulkanPlugin));
|
||||
// Window::new(app, window_config).unwrap();
|
||||
// Vulkan::new(app).unwrap();
|
||||
}
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
use bevy_app::{App, Last, Plugin, Startup};
|
||||
|
||||
pub struct TestPlugin;
|
||||
|
||||
impl Plugin for TestPlugin {
|
||||
fn build(&self, app: &mut App) {
|
||||
app.add_systems(Last, setup_system);
|
||||
}
|
||||
}
|
||||
|
||||
fn setup_system() {
|
||||
log::info!("Hello, world!");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue