Hierarchy

Constructors

  • Returns default

Properties

event: IEventEmitter<default, IAudioEvents>

Methods

  • Returns the current music handler, an instance of EnumCursor<Music>

    Returns default<Music, string>

  • Sets the current track to the first in the current music handler.

    Returns Promise<void>

  • Plays a ui sound effect (a sound effect with no position)

    Parameters

    • sfxType: SfxType
    • speed: number = 1

    Returns Promise<void>

  • Returns void

  • Plays a sound effect (game / location based)

    Parameters

    Returns void

  • Resets the music handler to its original state.

    Returns Promise<void>

  • Returns void

  • Sets the music handler to the provided instance of EnumCursor<Music>. Causes any playing music to stop.

    Parameters

    Returns Promise<void>

  • Returns void

  • Returns void

  • Parameters

    • speed: number

    Returns Promise<void>

  • Returns Promise<void>

  • Returns void

Generated using TypeDoc