Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/borismus/game-asset-loader
/ functions
Functions
16 in github.com/borismus/game-asset-loader
⨍
Functions
16
◇
Types & classes
0
↓ 4 callers
Function
fireCallback_
* @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 callers
Function
addCallback_
* @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 callers
Function
fireCallbackHelper_
(object, bundleName, params)
gal.js:308
↓ 1 callers
Function
basename_
* @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 callers
Function
createDir_
* @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 callers
Function
dirname_
* @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 callers
Function
fetchJSON_
* @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
Function
GAL
(manifestUrl)
gal.js:28
Function
GALFS
* Class for serializing game assets (for GAL) using the filesystem API. * @constructor
gal.filesystem.js:82
Function
downloadAll_
* @private * Starts downloading all of the assets in the manifest, in order.
gal.js:321
Function
finishInit_
* @private * Initializes the adapter and assigns the manifest. * Starts downloading assets if the manifest is set to autoDownload. * @param {object
gal.js:260
Function
initAdapter_
* @private * Sets the manifest and parses out bundles and bundle order. * @param {function} callback Called when the adapter has initialized.
gal.js:232
Function
onError
(error)
gal.filesystem.js:27
Function
onInitFs
(fs)
gal.filesystem.js:103
Function
quotaCallback
(grantedBytes)
gal.filesystem.js:114
Function
setManifest_
* @private * Fetches JSON at a URL and calls the callback with the parsed object. * @param {object} manifest The manifest object.
gal.js:244