mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-20 18:29:57 -04:00
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:
parent
2ebb112d30
commit
c23e9c6bf8
8 changed files with 213 additions and 64 deletions
src/engine
|
@ -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;
|
||||
};
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue