Clean up sync world running GoalManager creation
This commit is contained in:
parent
8f85e37713
commit
405c21cba4
1 changed files with 1 additions and 4 deletions
|
@ -238,10 +238,7 @@ module.exports = class Angel extends CocoClass
|
||||||
work.testWorld = testWorld = new World work.userCodeMap
|
work.testWorld = testWorld = new World work.userCodeMap
|
||||||
testWorld.loadFromLevel work.level
|
testWorld.loadFromLevel work.level
|
||||||
if @shared.goalManager
|
if @shared.goalManager
|
||||||
# TODO: Do we need to create testGM via @shared.goalManager.constructor for some scenario?
|
testGM = new GoalManager(testWorld)
|
||||||
# TODO: It breaks IE9, because @world is undefined in GoalManager.initThangTeams()
|
|
||||||
# testGM = new @shared.goalManager.constructor @testWorld
|
|
||||||
testGM = new GoalManager(work.testWorld)
|
|
||||||
testGM.setGoals work.goals
|
testGM.setGoals work.goals
|
||||||
testGM.setCode work.userCodeMap
|
testGM.setCode work.userCodeMap
|
||||||
testGM.worldGenerationWillBegin()
|
testGM.worldGenerationWillBegin()
|
||||||
|
|
Reference in a new issue