Load projects & costumes through scratch-storage

This also sets up the framework to load sounds through scratch-storage,
to be finished in a later change.
This commit is contained in:
Christopher Willis-Ford 2017-01-27 13:44:48 -05:00
parent 2ebb112d30
commit c23e9c6bf8
8 changed files with 213 additions and 64 deletions
src/engine

View file

@ -311,6 +311,14 @@ Runtime.prototype.clearEdgeActivatedValues = function () {
this._edgeActivatedHatValues = {};
};
/**
* Attach the audio engine
* @param {!AudioEngine} audioEngine The audio engine to attach
*/
Runtime.prototype.attachAudioEngine = function (audioEngine) {
this.audioEngine = audioEngine;
};
/**
* Attach the renderer
* @param {!RenderWebGL} renderer The renderer to attach
@ -320,11 +328,11 @@ Runtime.prototype.attachRenderer = function (renderer) {
};
/**
* Attach the audio engine
* @param {!AudioEngine} audioEngine The audio engine to attach
* Attach the storage module
* @param {!ScratchStorage} storage The storage module to attach
*/
Runtime.prototype.attachAudioEngine = function (audioEngine) {
this.audioEngine = audioEngine;
Runtime.prototype.attachStorage = function (storage) {
this.storage = storage;
};
// -----------------------------------------------------------------------------