BattleSim/client/app/js/concerns/alts.coffee

11 lines
263 B
CoffeeScript
Raw Normal View History

2016-02-01 22:19:30 +00:00
PokeBattle.primus.on 'altList', (list) ->
PokeBattle.alts.list = list
PokeBattle.primus.on 'altCreated', (altName) ->
PokeBattle.alts.list.push(altName)
PokeBattle.alts =
list: []
createAlt: (altName) ->
PokeBattle.primus.send('createAlt', altName)