11 lines
263 B
CoffeeScript
11 lines
263 B
CoffeeScript
|
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)
|