mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-01 03:16:56 -05:00
11 lines
263 B
CoffeeScript
11 lines
263 B
CoffeeScript
|
CocoClass = require 'lib/CocoClass'
|
||
|
|
||
|
namesCache = {}
|
||
|
|
||
|
class SystemNameLoader extends CocoClass
|
||
|
getName: (id) -> namesCache[id]?.name
|
||
|
|
||
|
setName: (system) -> namesCache[system.get('original')] = {name:system.get('name')}
|
||
|
|
||
|
module.exports = new SystemNameLoader()
|