From 0ac51b879db63d5600b796cd7e54a85a9a2e3e94 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Fri, 22 Dec 2017 15:46:48 +0100 Subject: [PATCH] Added SoundEvent class --- v3/src/sound/SoundEvent.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 v3/src/sound/SoundEvent.js diff --git a/v3/src/sound/SoundEvent.js b/v3/src/sound/SoundEvent.js new file mode 100644 index 000000000..11c1ec348 --- /dev/null +++ b/v3/src/sound/SoundEvent.js @@ -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;