Move PitchShiftPlugin into sound.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nolan Darilek 2023-03-28 12:16:38 -05:00
parent 966cdd903b
commit feaeded719
3 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,6 @@ pub mod log;
pub mod map; pub mod map;
pub mod navigation; pub mod navigation;
pub mod pathfinding; pub mod pathfinding;
pub mod pitch_shift;
pub use rand; pub use rand;
pub use shadowcast; pub use shadowcast;
pub mod sound; pub mod sound;

View File

@ -2,10 +2,12 @@ use bevy::{app::PluginGroupBuilder, prelude::*};
pub mod footstep; pub mod footstep;
pub mod icon; pub mod icon;
pub mod pitch_shift;
pub mod volumetric; pub mod volumetric;
pub use footstep::Footstep; pub use footstep::Footstep;
pub use icon::{SoundIcon, SoundIconPlugin}; pub use icon::{SoundIcon, SoundIconPlugin};
pub use pitch_shift::PitchShiftPlugin;
pub use volumetric::Volumetric; pub use volumetric::Volumetric;
/*fn scale_sounds(config: Res<CoreConfig>, mut sounds: Query<&mut Sound>) { /*fn scale_sounds(config: Res<CoreConfig>, mut sounds: Query<&mut Sound>) {
@ -34,6 +36,7 @@ where
PluginGroupBuilder::start::<Self>() PluginGroupBuilder::start::<Self>()
.add(footstep::FootstepPlugin) .add(footstep::FootstepPlugin)
.add(icon::SoundIconPlugin::<S>::default()) .add(icon::SoundIconPlugin::<S>::default())
.add(pitch_shift::PitchShiftPlugin::default())
.add(volumetric::VolumetricPlugin) .add(volumetric::VolumetricPlugin)
// .add_system(scale_sounds); // .add_system(scale_sounds);
} }