mirror of
https://github.com/photonstorm/phaser
synced 2024-12-23 19:43:28 +00:00
20 lines
314 B
JavaScript
20 lines
314 B
JavaScript
|
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;
|