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

Method getLevelNameMap

app/models/Campaign.js:104–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

102 }
103
104 getLevelNameMap () {
105 const levelNameMap = {}
106 this.getLevels().models.forEach(l => { levelNameMap[l.get('original')] = utils.i18n(l.attributes, 'name') })
107 return levelNameMap
108 }
109
110 getLevelNumber (levelID, defaultNumber) {
111 if (this.levelNumberMap == null) { this.levelNumberMap = Campaign.getLevelNumberMap(this.attributes) }

Callers

nothing calls this directly

Calls 2

getLevelsMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected