mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
fce9f0031b
intermediate intermediate
10 lines
261 B
CoffeeScript
10 lines
261 B
CoffeeScript
CocoClass = require './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()
|