mirror of
https://github.com/lightsoutgames/bevy_tts.git
synced 2024-12-03 17:15:56 +00:00
chore: Update to Bevy 0.11.
This commit is contained in:
parent
e9eb6767c6
commit
886b2f54e5
|
@ -17,12 +17,12 @@ speech_dispatcher_0_11 = ["tts/speech_dispatcher_0_11"]
|
||||||
tolk = ["tts/tolk"]
|
tolk = ["tts/tolk"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
bevy = { version = "0.10", default-features = false }
|
bevy = { version = "0.11", default-features = false }
|
||||||
crossbeam-channel = "0.5"
|
crossbeam-channel = "0.5"
|
||||||
tts = { version = "0.25", default-features = false }
|
tts = { version = "0.25", default-features = false }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
bevy = { version = "0.10", default-features = true }
|
bevy = { version = "0.11", default-features = true }
|
||||||
|
|
||||||
[package.metadata.release]
|
[package.metadata.release]
|
||||||
publish = false
|
publish = false
|
||||||
|
|
|
@ -3,12 +3,9 @@ use bevy_tts::*;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
App::new()
|
App::new()
|
||||||
.add_plugins(DefaultPlugins)
|
.add_plugins((DefaultPlugins, bevy_tts::TtsPlugin))
|
||||||
.add_plugin(bevy_tts::TtsPlugin)
|
.add_systems(Startup, setup)
|
||||||
.add_system(bevy::window::close_on_esc)
|
.add_systems(Update, (bevy::window::close_on_esc, event_poll, greet))
|
||||||
.add_startup_system(setup)
|
|
||||||
.add_system(event_poll)
|
|
||||||
.add_system(greet)
|
|
||||||
.run();
|
.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ impl Tts {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Event, Debug)]
|
||||||
pub enum TtsEvent {
|
pub enum TtsEvent {
|
||||||
UtteranceBegin(UtteranceId),
|
UtteranceBegin(UtteranceId),
|
||||||
UtteranceEnd(UtteranceId),
|
UtteranceEnd(UtteranceId),
|
||||||
|
@ -58,6 +58,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);
|
.add_systems(Update, poll_callbacks);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user