bevy14: upgrade AppExit enumerator

This commit is contained in:
yuni 2024-07-09 02:19:44 +02:00
parent ab226bbdfe
commit b1ff21aec4

View file

@ -517,7 +517,7 @@ pub fn handle_input(
keyboard_input: Res<ButtonInput<KeyCode>>,
mut settings: ResMut<Settings>,
mut menustate: ResMut<MenuState>,
mut app_exit_events: ResMut<Events<bevy::app::AppExit>>,
mut app_exit_events: ResMut<Events<AppExit>>,
mut ew_game: EventWriter<game::GameEvent>,
mut ew_playerdies: EventWriter<game::PlayerDiesEvent>,
mut ew_sfx: EventWriter<audio::PlaySfxEvent>,
@ -601,7 +601,7 @@ pub fn handle_input(
ew_playerdies.send(game::PlayerDiesEvent(actor::DamageType::Depressurization));
}
MenuAction::Quit => {
app_exit_events.send(bevy::app::AppExit);
app_exit_events.send(AppExit::Success);
}
};
}