mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Added SoundEvent class
This commit is contained in:
parent
97e648bea6
commit
0ac51b879d
1 changed files with 19 additions and 0 deletions
19
v3/src/sound/SoundEvent.js
Normal file
19
v3/src/sound/SoundEvent.js
Normal file
|
@ -0,0 +1,19 @@
|
|||
var Class = require('../utils/Class');
|
||||
var Event = require('../events/Event');
|
||||
|
||||
var SoundEvent = new Class({
|
||||
|
||||
Extends: Event,
|
||||
|
||||
initialize:
|
||||
|
||||
function SoundEvent (sound, type)
|
||||
{
|
||||
Event.call(this, type);
|
||||
|
||||
this.sound = sound;
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
module.exports = SoundEvent;
|
Loading…
Reference in a new issue