MCPcopy Create free account

hub / github.com/borismus/game-asset-loader / functions

Functions16 in github.com/borismus/game-asset-loader

↓ 4 callersFunctionfireCallback_
* @private * Fires callbacks of a given type for a certain bundle. * @param {object} object dictionary of callbacks. * @param {string} bundleName s
gal.js:302
↓ 3 callersFunctionaddCallback_
* @private * Adds a callback associated with a bundle name. * @param {object} callbacks an object associated with an event type * (ex. bundle lo
gal.js:281
↓ 2 callersFunctionfireCallbackHelper_
(object, bundleName, params)
gal.js:308
↓ 1 callersFunctionbasename_
* @private * Utility tools to emulate UNIX basename. * @param {string} path The path whose basename to get. * @return {string} The contents of the
gal.filesystem.js:73
↓ 1 callersFunctioncreateDir_
* @private * Helper to create file at path, as well as intermediate directories in the * path. Behaves roughly like `mkdir -p` * @param {DirectoryE
gal.filesystem.js:40
↓ 1 callersFunctiondirname_
* @private * Utility tools to emulate UNIX dirname. * @param {string} path The path whose basename to get. * @return {string} The contents of the p
gal.filesystem.js:62
↓ 1 callersFunctionfetchJSON_
* @private * Initializes the adapter and calls back when that's done. * @param {string} url The URL to the manifest file. * @param {function} callb
gal.js:214
FunctionGAL
(manifestUrl)
gal.js:28
FunctionGALFS
* Class for serializing game assets (for GAL) using the filesystem API. * @constructor
gal.filesystem.js:82
FunctiondownloadAll_
* @private * Starts downloading all of the assets in the manifest, in order.
gal.js:321
FunctionfinishInit_
* @private * Initializes the adapter and assigns the manifest. * Starts downloading assets if the manifest is set to autoDownload. * @param {object
gal.js:260
FunctioninitAdapter_
* @private * Sets the manifest and parses out bundles and bundle order. * @param {function} callback Called when the adapter has initialized.
gal.js:232
FunctiononError
(error)
gal.filesystem.js:27
FunctiononInitFs
(fs)
gal.filesystem.js:103
FunctionquotaCallback
(grantedBytes)
gal.filesystem.js:114
FunctionsetManifest_
* @private * Fetches JSON at a URL and calls the callback with the parsed object. * @param {object} manifest The manifest object.
gal.js:244