MCPcopy Create free account
hub / github.com/codecombat/codecombat / setupGod

Method setupGod

app/views/editor/verifier/VerifierTest.js:177–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175 }
176
177 setupGod () {
178 const level = this.level.serialize({ supermodel: this.supermodel, session: this.session, otherSession: null, headless: true, sessionless: false })
179 if (this.checkClampedProperties) {
180 this.prepareTestingLevel(level)
181 }
182 this.god.setLevel(level)
183 this.god.setLevelSessionIDs([this.session.id])
184 this.god.setWorldClassMap(this.world.classMap)
185 this.god.lastFlagHistory = this.session.get('state').flagHistory
186 this.god.lastDifficulty = this.session.get('state').difficulty
187 this.god.lastFixedSeed = this.session.solution.seed
188 this.god.lastSubmissionCount = 0
189 }
190
191 initGoalManager () {
192 this.goalManager = new GoalManager(this.world, this.level.get('goals'), this.team)

Callers 1

Calls 4

prepareTestingLevelMethod · 0.95
serializeMethod · 0.80
setLevelMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected