MCPcopy Create free account
hub / github.com/codecombat/codecombat / queueThangType

Method queueThangType

ozaria/engine/cinematic/Loader.js:139–147  ·  view source on GitHub ↗

* Queues a ThangType resource for async loading. * @param {string} slug ThangType slug.

(slug)

Source from the content-addressed store, hash-verified

137 * @param {string} slug ThangType slug.
138 */
139 queueThangType (slug) {
140 this.loadingThangTypes.set(
141 slug,
142 (async () => {
143 const attr = await getThang({ slug })
144 this.loadedThangTypes.set(slug, new ThangType(attr))
145 })()
146 )
147 }
148
149 /**
150 * Ensure all ThangTypes in `loadingThangTypes` complete loading.

Callers 2

loadBackgroundObjectsMethod · 0.95
loadThangTypesMethod · 0.95

Calls 2

getThangFunction · 0.90
setMethod · 0.45

Tested by

no test coverage detected