mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Added goal states listener
This commit is contained in:
parent
58bfddeebf
commit
cef7e89326
1 changed files with 6 additions and 1 deletions
|
@ -98,7 +98,7 @@ module.exports = class HomeView extends View
|
|||
super()
|
||||
@turnOnStageUpdates()
|
||||
|
||||
onSimulateButtonClick: (e) ->
|
||||
onSimulateButtonClick: (e) =>
|
||||
$.get "/queue/scoring", (data) =>
|
||||
levelName = data.sessions[0].levelID
|
||||
console.log data
|
||||
|
@ -121,6 +121,11 @@ module.exports = class HomeView extends View
|
|||
|
||||
god.createWorld()
|
||||
|
||||
Backbone.Mediator.subscribe 'god:new-world-created', @onWorldCreated, @
|
||||
|
||||
onWorldCreated: (data) ->
|
||||
console.log "GOAL STATES"
|
||||
console.log data.goalStates
|
||||
|
||||
|
||||
filterProgrammableComponents: (thangs, spellToSourceMap) =>
|
||||
|
|
Loading…
Reference in a new issue