@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
47 lines (41 loc) • 916 B
JavaScript
/**
* @template CTX
* @template Asset
*/
export class AssetLoader {
/**
*
* @type {AssetManager}
*/
assetManager = null;
/**
*
* @type {CTX}
*/
context = null;
/**
*
* @param {AssetManager} assetManager
* @param {CTX} context
*/
async link(assetManager, context) {
this.assetManager = assetManager;
this.context = context;
}
/**
* Release any held resources, finalizing operation of the loader
*/
async unlink() {
}
/**
*
* @param {AssetRequestScope} scope
* @param {string} path
* @param {function(asset:Asset)} success
* @param {function} failure
* @param {function(current:number, total:number)} progress
*/
load(scope, path, success, failure, progress) {
failure('Not Implemented');
}
}