diff --git a/Cargo.toml b/Cargo.toml index 8bc6281..28f62b1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bevy = "0.16.1" +bevy = "0.17.0-rc.2" fastrand = "2.1.1" # ref: https://github.com/bevyengine/bevy/pull/3992 [workspace] diff --git a/src/game/ai/autofire.rs b/src/game/ai/autofire.rs index a4f064e..3dc8858 100644 --- a/src/game/ai/autofire.rs +++ b/src/game/ai/autofire.rs @@ -11,8 +11,8 @@ pub struct AutoFirePlugin; // Plugin definition impl Plugin for AutoFirePlugin { fn build(&self, app: &mut App) { - app.add_event::() - .add_event::() + app.add_message::() + .add_message::() .add_systems(Update, fire_controller.run_if(in_state(AppState::InGame))); } } @@ -20,14 +20,14 @@ impl Plugin for AutoFirePlugin { // Fire controller system pub fn fire_controller( time: Res