mod godot_ref;
mod components;
pub use godot_ref::*;
pub use components::*;
pub struct DefaultGodotPlugins;
impl bevy::app::PluginGroup for DefaultGodotPlugins {
fn build(&mut self, group: &mut bevy::app::PluginGroupBuilder) {
group.add(bevy::log::LogPlugin::default());
group.add(bevy::core::CorePlugin::default());
group.add(bevy::transform::TransformPlugin::default());
group.add(bevy::diagnostic::DiagnosticsPlugin::default());
group.add(GodotBindingPlugin::default());
}
}
#[derive(Default)]
pub struct GodotBindingPlugin;
impl bevy::app::Plugin for GodotBindingPlugin {
fn build(&self, app: &mut bevy::app::App) {
app.init_resource::<GodotRegistry>();
app.add_system(components::spawn_godot_scenes);
app.add_system(components::sync_node2d_transform);
app.add_system(components::sync_animated_sprite);
}
}