[−][src]Struct pokemon_rust::audio::SoundKit

pub struct SoundKit<'a> {
    asset_storage: Read<'a, AssetStorage<Source>>,
    sound_storage: ReadExpect<'a, SoundStorage>,
    output: Option<Read<'a, Output>>,
    game_config: ReadExpect<'a, GameConfig>,
}

A type which implements SystemData that can be used to play sound effects (SFX) easily. This can be retrieved either via the SystemData of a System or directly from the world through SoundKit::fetch(world).

Fields

asset_storage: Read<'a, AssetStorage<Source>>sound_storage: ReadExpect<'a, SoundStorage>output: Option<Read<'a, Output>>game_config: ReadExpect<'a, GameConfig>

Methods

impl<'a> SoundKit<'a>[src]

pub fn play_sound(&self, sound: Sound)[src]

Trait Implementations

impl<'a> SystemData<'a> for SoundKit<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for SoundKit<'a>

impl<'a> Send for SoundKit<'a>

impl<'a> Sync for SoundKit<'a>

impl<'a> Unpin for SoundKit<'a>

impl<'a> !UnwindSafe for SoundKit<'a>

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float, 
[src]

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Any for T where
    T: Any, 

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<'a, T> DynamicSystemData<'a> for T where
    T: SystemData<'a>, 

type Accessor = StaticAccessor<T>

The accessor of the SystemData, which specifies the read and write dependencies and does the fetching. Read more

impl<T> Erased for T

impl<T> Event for T where
    T: Send + Sync + 'static, 

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Resource for T where
    T: Any + Send + Sync, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SetParameter for T

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> Supports<T> for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,