Struct amethyst_audio::AudioBundle
[−]
[src]
pub struct AudioBundle<'a, F, R> { /* fields omitted */ }
Audio bundle
Will only register the AudioSink
and the DjSystem
if an audio output is found.
DjSystem
will be registered with name "dj_system".
This will also add the asset processor for Source
.
Errors
No errors returned by this bundle
Panics
Panics during DjSystem
registration if the bundle is applied twice.
Methods
impl<'a, F, R> AudioBundle<'a, F, R>
[src]
fn new(picker: F) -> Self
[src]
Create a new DJ bundle
fn with_dep(self, dep: &'a [&'a str]) -> Self
[src]
Set dependencies for the DjSystem
Trait Implementations
impl<'a, 'b, 'c, F, R> ECSBundle<'a, 'b> for AudioBundle<'c, F, R> where
F: FnMut(&mut R) -> Option<SourceHandle> + Send + 'static,
R: Send + Sync + 'static,
[src]
F: FnMut(&mut R) -> Option<SourceHandle> + Send + 'static,
R: Send + Sync + 'static,
fn build(
self,
world: &mut World,
builder: DispatcherBuilder<'a, 'b>
) -> Result<DispatcherBuilder<'a, 'b>>
[src]
self,
world: &mut World,
builder: DispatcherBuilder<'a, 'b>
) -> Result<DispatcherBuilder<'a, 'b>>
Build and add ECS resources, register components, add systems etc to the Application.