diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-08 15:32:37 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-08 15:32:37 +0800 |
| commit | ebd8f440ae5a2d131cd4e6c064b2d97209cf0858 (patch) | |
| tree | 92d68febf5d348d94f28296f4a3b2b1f6aa8c3e7 | |
| parent | 2dbd40cfce7ba57dc7a74ec406ac35bd5bcac1e2 (diff) | |
refactor: rename CHMovementPlugins to CHMovementPlugin
| -rw-r--r-- | plugins/movement/src/lib.rs | 4 | ||||
| -rw-r--r-- | src/main.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/movement/src/lib.rs b/plugins/movement/src/lib.rs index d279d3b..626bb5a 100644 --- a/plugins/movement/src/lib.rs +++ b/plugins/movement/src/lib.rs @@ -28,9 +28,9 @@ import!(reducer); /// Cigarette Hacker movement plugin /// /// Used to describe the movement of characters in the game -pub struct CHMovementPlugins; +pub struct CHMovementPlugin; -impl Plugin for CHMovementPlugins { +impl Plugin for CHMovementPlugin { fn build(&self, app: &mut bevy::app::App) { app.add_systems(FixedUpdate, update_movement); } diff --git a/src/main.rs b/src/main.rs index 79b464e..4906590 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,6 +8,6 @@ use bevy::prelude::*; fn main() { let mut app = App::new(); app.add_plugins(DefaultPlugins); - app.add_plugins(ch_movement::CHMovementPlugins); + app.add_plugins(ch_movement::CHMovementPlugin); app.run(); } |
