use bevy_app::App; use bevy_vanth::BevyPluginModule; use serde::{Deserialize, Serialize}; use vanth::{Module, Vanth}; mod bevy_tests { use bevy_app::Plugin; use vanth::Root; use super::*; #[derive(Deserialize, Serialize, Vanth)] struct TestData { number: u32, } #[derive(Deserialize, Serialize, Vanth)] struct TestTask { a: TestData, b: TestData, } #[derive(Deserialize, Serialize, Vanth)] struct TestModule {} impl Module for TestModule { } #[test] fn test_bevy() { let root = Root::local(); let module = TestModule {}; let module_bevy_plugin = bevy_vanth::creation_bevy_plugin(module); let bevy_vanth_plugin = bevy_vanth::BevyVanthPlugin::from_root(root); let mut app = App::new(); app.add_plugins(module_bevy_plugin); // app.add_plugins(bevy_vanth_plugin); } }