pub enum SoundCue {
Laser,
Explosion,
Pickup,
Bounce,
Dash,
UiClick,
Custom(u32),
}Expand description
Built-in and custom sound cue categories dispatched by AudioBus.
Variants§
Laser
Weapon fire or laser pulse.
Explosion
Impact explosion or enemy destroyed.
Pickup
Collectible pickup or score increment.
Bounce
Elastic physics bounce or wall hit.
Dash
Player jump or dash impulse.
UiClick
UI interaction click inside game HUD.
Custom(u32)
Application-defined custom sound identifier.
Trait Implementations§
impl Copy for SoundCue
impl Eq for SoundCue
impl StructuralPartialEq for SoundCue
Auto Trait Implementations§
impl Forget for SoundCue
impl Freeze for SoundCue
impl Move for SoundCue
impl RefUnwindSafe for SoundCue
impl Send for SoundCue
impl Sync for SoundCue
impl Unpin for SoundCue
impl UnsafeUnpin for SoundCue
impl UnwindSafe for SoundCue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more