MCPcopy Index your code
hub / github.com/codecombat/codecombat / initScriptManager

Method initScriptManager

app/views/play/SpectateView.js:300–310  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298 }
299
300 initScriptManager () {
301 let nonVictoryPlaybackScripts
302 if (this.world.scripts) {
303 nonVictoryPlaybackScripts = _.reject(this.world.scripts, script => !/(Set Camera Boundaries|Introduction)/.test(script.id))
304 } else {
305 console.log('World scripts don\'t exist!')
306 nonVictoryPlaybackScripts = []
307 }
308 this.scriptManager = new ScriptManager({ scripts: nonVictoryPlaybackScripts, view: this, session: this.session })
309 return this.scriptManager.loadFromSession()
310 }
311
312 initVolume () {
313 let volume = me.get('volume')

Callers 1

onLevelLoaderLoadedMethod · 0.95

Calls 1

logMethod · 0.80

Tested by

no test coverage detected