chore: Update to Bevy 0.11.

This commit is contained in:
Nolan Darilek 2023-07-16 13:03:49 -05:00
parent e9eb6767c6
commit 886b2f54e5
3 changed files with 7 additions and 10 deletions

View File

@ -17,12 +17,12 @@ speech_dispatcher_0_11 = ["tts/speech_dispatcher_0_11"]
tolk = ["tts/tolk"]
[dependencies]
bevy = { version = "0.10", default-features = false }
bevy = { version = "0.11", default-features = false }
crossbeam-channel = "0.5"
tts = { version = "0.25", default-features = false }
[dev-dependencies]
bevy = { version = "0.10", default-features = true }
bevy = { version = "0.11", default-features = true }
[package.metadata.release]
publish = false

View File

@ -3,12 +3,9 @@ use bevy_tts::*;
fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugin(bevy_tts::TtsPlugin)
.add_system(bevy::window::close_on_esc)
.add_startup_system(setup)
.add_system(event_poll)
.add_system(greet)
.add_plugins((DefaultPlugins, bevy_tts::TtsPlugin))
.add_systems(Startup, setup)
.add_systems(Update, (bevy::window::close_on_esc, event_poll, greet))
.run();
}

View File

@ -11,7 +11,7 @@ impl Tts {
}
}
#[derive(Debug)]
#[derive(Event, Debug)]
pub enum TtsEvent {
UtteranceBegin(UtteranceId),
UtteranceEnd(UtteranceId),
@ -58,6 +58,6 @@ impl Plugin for TtsPlugin {
app.add_event::<TtsEvent>()
.insert_resource(TtsChannel(rx))
.insert_resource(tts)
.add_system(poll_callbacks);
.add_systems(Update, poll_callbacks);
}
}