From 14de224346557901d94a8cd91762e7b89014e09f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Mockers?= Date: Fri, 15 Nov 2024 01:29:54 +0100 Subject: [PATCH] default --- README.md | 2 +- examples/chain.rs | 2 +- examples/controlled.rs | 2 +- examples/custom_component.rs | 2 +- examples/menu.rs | 2 +- examples/pause.rs | 2 +- examples/react_on_end.rs | 2 +- examples/sprite_color.rs | 2 +- examples/sprite_color_space.rs | 2 +- examples/sprite_size.rs | 2 +- examples/transform_rotation.rs | 2 +- examples/transform_translation.rs | 2 +- examples/ui_color.rs | 2 +- examples/ui_style.rs | 2 +- src/plugin.rs | 5 ++--- 15 files changed, 16 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 4192e9b..f6960cc 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ use bevy_easings::EasingsPlugin; fn main() { App::new() - .add_plugins(EasingsPlugin::new()); + .add_plugins(EasingsPlugin::default()); } ``` diff --git a/examples/chain.rs b/examples/chain.rs index 0256a92..d432948 100644 --- a/examples/chain.rs +++ b/examples/chain.rs @@ -5,7 +5,7 @@ use bevy_easings::{Ease, *}; fn main() -> Result<(), Box> { App::default() .add_plugins(DefaultPlugins) - .add_plugins(bevy_easings::EasingsPlugin::new()) + .add_plugins(bevy_easings::EasingsPlugin::default()) .add_systems(Startup, setup) .add_systems(PostUpdate, add_easing) .run(); diff --git a/examples/controlled.rs b/examples/controlled.rs index 53c24d8..db5ade2 100644 --- a/examples/controlled.rs +++ b/examples/controlled.rs @@ -11,7 +11,7 @@ fn main() -> Result<(), Box> { App::default() .init_resource::() .add_plugins(DefaultPlugins) - .add_plugins(bevy_easings::EasingsPlugin::new()) + .add_plugins(bevy_easings::EasingsPlugin::default()) .add_systems(Startup, setup) .add_systems(Update, (update_text, handle_input)) .add_systems(FixedUpdate, check_value) diff --git a/examples/custom_component.rs b/examples/custom_component.rs index 698c803..629251c 100644 --- a/examples/custom_component.rs +++ b/examples/custom_component.rs @@ -5,7 +5,7 @@ use bevy_easings::*; fn main() -> Result<(), Box> { App::default() .add_plugins(DefaultPlugins) - .add_plugins(bevy_easings::EasingsPlugin::new()) + .add_plugins(bevy_easings::EasingsPlugin::default()) .add_systems(Startup, setup) .add_systems(FixedUpdate, check_value) .insert_resource(Time::::from_seconds(0.2)) diff --git a/examples/menu.rs b/examples/menu.rs index 13e03ba..1619b52 100644 --- a/examples/menu.rs +++ b/examples/menu.rs @@ -8,7 +8,7 @@ use rand::Rng; fn main() -> Result<(), Box> { App::default() .add_plugins(DefaultPlugins) - .add_plugins(bevy_easings::EasingsPlugin::new()) + .add_plugins(bevy_easings::EasingsPlugin::default()) .add_systems(Startup, setup) .add_systems(Update, (spawn_logo_points, switch_menu, update_text)) .add_systems(PostUpdate, despawn_menu) diff --git a/examples/pause.rs b/examples/pause.rs index 5f72c8e..e314fed 100644 --- a/examples/pause.rs +++ b/examples/pause.rs @@ -5,7 +5,7 @@ use bevy_easings::Ease; fn main() -> Result<(), Box> { App::default() .add_plugins(DefaultPlugins) - .add_plugins(bevy_easings::EasingsPlugin::new()) + .add_plugins(bevy_easings::EasingsPlugin::default()) .add_systems(Startup, setup) .add_systems(FixedUpdate, pause) .insert_resource(Time::::from_seconds(0.25)) diff --git a/examples/react_on_end.rs b/examples/react_on_end.rs index 138ef4e..dcf42b3 100644 --- a/examples/react_on_end.rs +++ b/examples/react_on_end.rs @@ -6,7 +6,7 @@ use rand::Rng; fn main() -> Result<(), Box> { App::default() .add_plugins(DefaultPlugins) - .add_plugins(bevy_easings::EasingsPlugin::new()) + .add_plugins(bevy_easings::EasingsPlugin::default()) .add_systems(Startup, setup) .add_systems(PostUpdate, add_new_easing) .run(); diff --git a/examples/sprite_color.rs b/examples/sprite_color.rs index a51e069..db7fd5e 100644 --- a/examples/sprite_color.rs +++ b/examples/sprite_color.rs @@ -5,7 +5,7 @@ use bevy_easings::Ease; fn main() -> Result<(), Box> { App::default() .add_plugins(DefaultPlugins) - .add_plugins(bevy_easings::EasingsPlugin::new()) + .add_plugins(bevy_easings::EasingsPlugin::default()) .add_systems(Startup, setup) .run(); diff --git a/examples/sprite_color_space.rs b/examples/sprite_color_space.rs index 4966fd6..d0bd4ba 100644 --- a/examples/sprite_color_space.rs +++ b/examples/sprite_color_space.rs @@ -5,7 +5,7 @@ use bevy_easings::{Ease, *}; fn main() -> Result<(), Box> { App::default() .add_plugins(DefaultPlugins) - .add_plugins(bevy_easings::EasingsPlugin::new()) + .add_plugins(bevy_easings::EasingsPlugin::default()) .add_systems(Startup, setup) .run(); diff --git a/examples/sprite_size.rs b/examples/sprite_size.rs index 3f1ab60..de793b6 100644 --- a/examples/sprite_size.rs +++ b/examples/sprite_size.rs @@ -5,7 +5,7 @@ use bevy_easings::Ease; fn main() -> Result<(), Box> { App::default() .add_plugins(DefaultPlugins) - .add_plugins(bevy_easings::EasingsPlugin::new()) + .add_plugins(bevy_easings::EasingsPlugin::default()) .add_systems(Startup, setup) .run(); diff --git a/examples/transform_rotation.rs b/examples/transform_rotation.rs index 9a29660..567f6f6 100644 --- a/examples/transform_rotation.rs +++ b/examples/transform_rotation.rs @@ -5,7 +5,7 @@ use bevy_easings::Ease; fn main() -> Result<(), Box> { App::default() .add_plugins(DefaultPlugins) - .add_plugins(bevy_easings::EasingsPlugin::new()) + .add_plugins(bevy_easings::EasingsPlugin::default()) .add_systems(Startup, setup) .run(); diff --git a/examples/transform_translation.rs b/examples/transform_translation.rs index e3ec992..60e955f 100644 --- a/examples/transform_translation.rs +++ b/examples/transform_translation.rs @@ -5,7 +5,7 @@ use bevy_easings::{Ease, *}; fn main() -> Result<(), Box> { App::default() .add_plugins(DefaultPlugins) - .add_plugins(bevy_easings::EasingsPlugin::new()) + .add_plugins(bevy_easings::EasingsPlugin::default()) .add_systems(Startup, setup) .run(); diff --git a/examples/ui_color.rs b/examples/ui_color.rs index 54738ed..9a3de65 100644 --- a/examples/ui_color.rs +++ b/examples/ui_color.rs @@ -5,7 +5,7 @@ use bevy_easings::Ease; fn main() -> Result<(), Box> { App::default() .add_plugins(DefaultPlugins) - .add_plugins(bevy_easings::EasingsPlugin::new()) + .add_plugins(bevy_easings::EasingsPlugin::default()) .add_systems(Startup, setup) .run(); diff --git a/examples/ui_style.rs b/examples/ui_style.rs index 5ff9509..b53c832 100644 --- a/examples/ui_style.rs +++ b/examples/ui_style.rs @@ -5,7 +5,7 @@ use bevy_easings::Ease; fn main() -> Result<(), Box> { App::default() .add_plugins(DefaultPlugins) - .add_plugins(bevy_easings::EasingsPlugin::new()) + .add_plugins(bevy_easings::EasingsPlugin::default()) .add_systems(Startup, setup) .run(); diff --git a/src/plugin.rs b/src/plugin.rs index 69e15a6..eda0fa9 100644 --- a/src/plugin.rs +++ b/src/plugin.rs @@ -14,9 +14,8 @@ pub struct EasingsPlugin { _marker: std::marker::PhantomData