Upgrade to Bevy 0.6.

This commit is contained in:
Nolan Darilek 2022-01-10 12:40:38 -06:00
parent 7d205cd9e3
commit eda9ec2eae
2 changed files with 5 additions and 5 deletions

View File

@ -12,9 +12,9 @@ default = ["tolk"]
tolk = ["tts/tolk"] tolk = ["tts/tolk"]
[dependencies] [dependencies]
bevy = { version = "0.5", default-features = false } bevy = { version = "0.6", default-features = false }
crossbeam-channel = "0.5" crossbeam-channel = "0.5"
tts = "0.19" tts = "0.20"
[dev-dependencies] [dev-dependencies]
bevy = { version = "0.5", default-features = true } bevy = { version = "0.6", default-features = true }

View File

@ -20,7 +20,7 @@ fn poll_callbacks(channel: Res<TtsChannel>, mut events: EventWriter<TtsEvent>) {
pub struct TtsPlugin; pub struct TtsPlugin;
impl Plugin for TtsPlugin { impl Plugin for TtsPlugin {
fn build(&self, app: &mut AppBuilder) { fn build(&self, app: &mut App) {
let tts = Tts::default().unwrap(); let tts = Tts::default().unwrap();
let (tx, rx) = unbounded(); let (tx, rx) = unbounded();
let tx_begin = tx.clone(); let tx_begin = tx.clone();
@ -47,6 +47,6 @@ impl Plugin for TtsPlugin {
app.add_event::<TtsEvent>() app.add_event::<TtsEvent>()
.insert_resource(TtsChannel(rx)) .insert_resource(TtsChannel(rx))
.insert_resource(tts) .insert_resource(tts)
.add_system(poll_callbacks.system()); .add_system(poll_callbacks);
} }
} }