mirror of
https://github.com/lightsoutgames/bevy_tts.git
synced 2024-11-10 03:05:57 +00:00
Upgrade to Bevy 0.6.
This commit is contained in:
parent
7d205cd9e3
commit
eda9ec2eae
|
@ -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 }
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user