     'ipad:memory-warning': 'onIPadMemoryWarning'
     'store:item-purchased': 'onItemPurchased'
     'tome:manual-cast': 'onRunCode'
+    'world:update-key-value-db': 'updateKeyValueDb'
 
   events:
     'click #level-done-button': 'onDonePressed'

    @level?.get 'slug'

  onRunCode: ->
    store.commit('game/incrementTimesCodeRun')

      continue unless thangType = _.find thangTypes, (m) -> m.get('name') is spriteName
      continue unless sound = AudioPlayer.soundForDialogue message, thangType.get('soundTriggers')
      AudioPlayer.preloadSoundReference sound
    if @level.isType('game-dev', 'hero', 'course')
      @session.updateKeyValueDb(e.keyValueDb)

  # Real-time playback
  onRealTimePlaybackStarted: (e) ->
