12 lines
312 B
CoffeeScript
12 lines
312 B
CoffeeScript
|
@ALL_GENERATIONS = [ 'rb', 'gs', 'rs', 'dp', 'bw', 'xy', 'in' ]
|
||
|
@SUPPORTED_GENERATIONS = ['xy', 'in' ]
|
||
|
@DEFAULT_GENERATION = 'in'
|
||
|
|
||
|
@INT_TO_GENERATION = {}
|
||
|
for gen, i in @ALL_GENERATIONS
|
||
|
@INT_TO_GENERATION[i + 1] = gen
|
||
|
|
||
|
@GENERATION_TO_INT = {}
|
||
|
for gen, i in @ALL_GENERATIONS
|
||
|
@GENERATION_TO_INT[gen] = (i + 1)
|