fantasy_craft/audio/plugin.rs
1use crate::{audio::system::audio_system, prelude::{GameState, Plugin, Stage, System}};
2
3pub struct AudioPlugin;
4
5impl Plugin for AudioPlugin {
6 fn build(&self, app: &mut crate::prelude::App) {
7 app.add_system(Stage::PostUpdate, System::new(
8 audio_system,
9 vec![GameState::Playing, GameState::Menu]
10 ));
11 }
12}