From eda9ec2eae2a6a2ebe402972cc2f2522f0c9f812 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Mon, 10 Jan 2022 12:40:38 -0600 Subject: [PATCH] Upgrade to Bevy 0.6. --- Cargo.toml | 6 +++--- src/lib.rs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 0dfb5ef..764ee30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -12,9 +12,9 @@ default = ["tolk"] tolk = ["tts/tolk"] [dependencies] -bevy = { version = "0.5", default-features = false } +bevy = { version = "0.6", default-features = false } crossbeam-channel = "0.5" -tts = "0.19" +tts = "0.20" [dev-dependencies] -bevy = { version = "0.5", default-features = true } \ No newline at end of file +bevy = { version = "0.6", default-features = true } \ No newline at end of file diff --git a/src/lib.rs b/src/lib.rs index 8c85d03..35d146a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -20,7 +20,7 @@ fn poll_callbacks(channel: Res, mut events: EventWriter) { pub struct TtsPlugin; impl Plugin for TtsPlugin { - fn build(&self, app: &mut AppBuilder) { + fn build(&self, app: &mut App) { let tts = Tts::default().unwrap(); let (tx, rx) = unbounded(); let tx_begin = tx.clone(); @@ -47,6 +47,6 @@ impl Plugin for TtsPlugin { app.add_event::() .insert_resource(TtsChannel(rx)) .insert_resource(tts) - .add_system(poll_callbacks.system()); + .add_system(poll_callbacks); } }