()
| 158 | } |
| 159 | |
| 160 | onLevelLoaderLoaded () { |
| 161 | this.grabLevelLoaderData() |
| 162 | // at this point, all requisite data is loaded, and sessions are not denormalized |
| 163 | const team = 'humans' |
| 164 | this.loadOpponentTeam(team) |
| 165 | this.god.setLevel(this.level.serialize({ supermodel: this.supermodel, session: this.session, otherSession: this.otherSession, headless: false, sessionless: false })) |
| 166 | this.god.setLevelSessionIDs(this.otherSession ? [this.session.id, this.otherSession.id] : [this.session.id]) |
| 167 | this.god.setWorldClassMap(this.world.classMap) |
| 168 | this.setTeam(team) |
| 169 | this.initSurface() |
| 170 | this.initGoalManager() |
| 171 | this.initScriptManager() |
| 172 | this.insertSubviews() |
| 173 | this.initVolume() |
| 174 | this.initSpectateCode() |
| 175 | |
| 176 | this.originalSessionState = $.extend(true, {}, this.session.get('state')) |
| 177 | this.register() |
| 178 | this.controlBar.setBus(this.bus) |
| 179 | return this.surface.showLevel() |
| 180 | } |
| 181 | |
| 182 | grabLevelLoaderData () { |
| 183 | this.session = this.levelLoader.session |
no test coverage detected