mirror of
https://github.com/lightsoutgames/bevy_tts.git
synced 2024-11-21 09:05:57 +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"]
|
||||
|
||||
[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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user