BattleSim/shared/ladders.coffee

12 lines
312 B
CoffeeScript
Raw Normal View History

2016-02-01 22:19:30 +00:00
@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)