MCPcopy Index your code
hub / github.com/codecombat/codecombat / loadAssets

Method loadAssets

ozaria/engine/cinematic/Loader.js:36–42  ·  view source on GitHub ↗

* Fetches initial Cinematic data and loads the ThangTypes. * @returns {Cinematic} The raw JSON object with Cinematic data.

()

Source from the content-addressed store, hash-verified

34 * @returns {Cinematic} The raw JSON object with Cinematic data.
35 */
36 async loadAssets () {
37 this.loadThangTypes(this.data.shots)
38 this.loadPlayerThangTypes()
39 this.loadBackgroundObjects(this.data.shots)
40 await this.load()
41 return this.data
42 }
43
44 /**
45 * Loads the player thangType from the global `me` object if accessible.

Callers 1

startUpMethod · 0.80

Calls 4

loadThangTypesMethod · 0.95
loadPlayerThangTypesMethod · 0.95
loadBackgroundObjectsMethod · 0.95
loadMethod · 0.95

Tested by

no test coverage detected