| 58 | } |
| 59 | |
| 60 | constructor (options) { |
| 61 | let left, left1 |
| 62 | super(options) |
| 63 | this.level = this.options.level |
| 64 | this.classroomAceConfig = this.options.classroomAceConfig |
| 65 | this.options.levelID = this.options.level?.get('slug') |
| 66 | if (!this.options.inOzariaMap) { |
| 67 | this.options.codeLanguage = this.options.session?.get('codeLanguage') |
| 68 | this.options.startingSessionHeroConfig = $.extend({}, true, ((left = this.options.session.get('heroConfig')) != null ? left : {})) |
| 69 | Backbone.Mediator.publish('music-player:enter-menu', { terrain: (left1 = this.options.level.get('terrain', true)) != null ? left1 : 'Dungeon' }) |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | getRenderData (context) { |
| 74 | if (context == null) { context = {} } |