Skip to content

Commit 0ac51b8

Browse files
Added SoundEvent class
1 parent 97e648b commit 0ac51b8

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

v3/src/sound/SoundEvent.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
var Class = require('../utils/Class');
2+
var Event = require('../events/Event');
3+
4+
var SoundEvent = new Class({
5+
6+
Extends: Event,
7+
8+
initialize:
9+
10+
function SoundEvent (sound, type)
11+
{
12+
Event.call(this, type);
13+
14+
this.sound = sound;
15+
}
16+
17+
});
18+
19+
module.exports = SoundEvent;

0 commit comments

Comments
 (0)