Class SfxAsset

Stores a sound effect

Functions

SfxAsset.new (path) Creates a new sound effect.

Methods

SfxAsset:play () Plays a sound effect.
SfxAsset:set_as (id) Sets a builtin sound effect.


Functions

Methods
SfxAsset.new (path)
Creates a new sound effect.

Parameters:

  • path string The path to the sound to load

Methods

SfxAsset:play ()
Plays a sound effect.
SfxAsset:set_as (id)
Sets a builtin sound effect.

Parameters:

  • id int The sound effect to override.

See also:

generated by LDoc 1.5.0 Last updated 2024-05-23 11:40:37