Added goal states listener

This commit is contained in:
Michael Schmatz 2014-02-11 13:09:53 -08:00
parent 58bfddeebf
commit cef7e89326

View file

@ -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) =>