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

Method spriteSheetKey

app/models/ThangType.js:343–353  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

341 }
342
343 spriteSheetKey (options) {
344 let colorConfigs = []
345 const object = options.colorConfig || {}
346 for (const groupName in object) {
347 const config = object[groupName]
348 colorConfigs.push(`${groupName}:${config.hue}|${config.saturation}|${config.lightness}`)
349 }
350 colorConfigs = colorConfigs.join(',')
351 const portraitOnly = !!options.portraitOnly
352 return `${this.get('name')} - ${options.resolutionFactor} - ${colorConfigs} - ${portraitOnly}`
353 }
354
355 getHeroShortName () { return ThangTypeLib.getHeroShortName(this.attributes) }
356

Callers 3

buildSpriteSheetMethod · 0.95
finishBuildMethod · 0.95
getPortraitStageMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected