chore: Update to Bevy 0.11.

This commit is contained in:
Nolan Darilek 2023-07-16 12:53:23 -05:00
parent 7982cec46b
commit 87012c6a6f
2 changed files with 9 additions and 5 deletions

View File

@ -9,11 +9,16 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
bevy = { version = "0.10", default-features = false } bevy = { version = "0.11", default-features = false }
ctrlc = "3" ctrlc = "3"
[target.'cfg(windows)'.dependencies] [target.'cfg(windows)'.dependencies]
windows = { version = "0.48", features = ["Win32_Foundation", "Win32_System_Power", "Win32_System_Registry", "Win32_System_SystemServices"] } windows = { version = "0.48", features = [
"Win32_Foundation",
"Win32_System_Power",
"Win32_System_Registry",
"Win32_System_SystemServices",
] }
[package.metadata.release] [package.metadata.release]
publish = false publish = false

View File

@ -74,8 +74,7 @@ pub struct FullThrottlePlugin {
impl Plugin for FullThrottlePlugin { impl Plugin for FullThrottlePlugin {
fn build(&self, app: &mut App) { fn build(&self, app: &mut App) {
app.insert_resource(*self) app.insert_resource(*self)
.add_startup_system(setup) .add_systems(Startup, setup)
.add_system(focus_change) .add_systems(PostUpdate, (focus_change, exit));
.add_system(exit.in_base_set(CoreSet::PostUpdate));
} }
} }