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

Method getThangType

ozaria/engine/cinematic/Loader.js:178–185  ·  view source on GitHub ↗

* Get a loaded thangType by slug. * @param {string} slug - Slug of a thangType * @returns {object|undefined} May return thangType or undefined

(slug)

Source from the content-addressed store, hash-verified

176 * @returns {object|undefined} May return thangType or undefined
177 */
178 getThangType (slug) {
179 const thangType = this.loadedThangTypes.get(slug)
180 if (!thangType) {
181 console.error(`Make sure '${slug}' thangType is loaded before getting`)
182 return
183 }
184 return thangType
185 }
186}

Callers 3

preRasterLankMethod · 0.80
moveLankCommandMethod · 0.80
removeLankResourceMethod · 0.80

Calls 2

getMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected