Various changes before merge

This commit is contained in:
Michael Schmatz 2014-02-11 15:47:06 -08:00
parent b29ab56fe2
commit 76b949ac1e
3 changed files with 3 additions and 7 deletions

View file

@ -26,7 +26,6 @@ module.exports = class LevelBus extends Bus
constructor: ->
super(arguments...)
@changedSessionProperties = {}
console.log "Level bus constructed!"
@saveSession = _.debounce(@saveSession, 1000, {maxWait: 5000})
init: ->
@ -90,7 +89,6 @@ module.exports = class LevelBus extends Bus
onSpellChanged: (e) ->
return unless @onPoint()
console.log "Spell Changed:",e.spell.spellKey
code = @session.get('code')
code ?= {}
parts = e.spell.spellKey.split('/')
@ -108,7 +106,6 @@ module.exports = class LevelBus extends Bus
unless e.spell.spellKey in @teamSpellMap[spellTeam]
@teamSpellMap[spellTeam].push e.spell.spellKey
console.log "Assigned spell #{e.spell.spellKey} to team #{spellTeam}"
@changedSessionProperties.teamSpells = true
@session.set({'teamSpells': @teamSpellMap})
@saveSession()
@ -241,4 +238,4 @@ module.exports = class LevelBus extends Bus
console.log @teamSpellMap
@changedSessionProperties.teamSpells = true
@session.set({'teamSpells': @teamSpellMap})
@saveSession()
@saveSession()

View file

@ -103,8 +103,7 @@ module.exports = class HomeView extends View
onSimulateButtonClick: (e) =>
$.get "/queue/scoring", (data) =>
levelName = data.sessions[0].levelID
console.log data
#TODO: Refactor. So much refactor.
world = {}
god = new God()
levelLoader = new LevelLoader(levelName, @supermodel, data.sessions[0].sessionID)

View file

@ -22,7 +22,7 @@ module.exports.initializeQueueClient = (cb) ->
generateQueueClient = ->
#if config.queue.accessKeyId
if false #TODO: revert this
if false #TODO: Change this in production
queueClient = new SQSQueueClient()
else
queueClient = new MongoQueueClient()