From 665faeadef4aa80e1fa889ceee3681559af99650 Mon Sep 17 00:00:00 2001 From: Larry Du Date: Sun, 28 Sep 2025 19:03:53 -0700 Subject: [PATCH 1/3] Codex update to 0.17.rc2. --- Cargo.toml | 2 +- src/game/ai/autofire.rs | 14 +++++++------- src/game/audio/mod.rs | 4 ++-- src/game/collisions.rs | 38 +++++++++++++++++++------------------- src/game/despawner.rs | 8 ++++---- src/game/events.rs | 14 +++++++------- src/game/levels/mod.rs | 13 +++++++------ src/game/particles/mod.rs | 4 ++-- src/game/player.rs | 22 +++++++++++----------- src/game/ui/mod.rs | 20 +++++++++++++------- src/game/vfx/mod.rs | 11 ++++++----- src/game/weapon/mod.rs | 7 +++---- src/main.rs | 7 +++++-- src/menus/mod.rs | 4 ++-- src/utils.rs | 3 ++- 15 files changed, 91 insertions(+), 80 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 5363f0a..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.15" +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 90db690..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