Exemplo n.º 1
0
 def showGUI(self, bootcampCtxStr):
     LOG_DEBUG_DEV_BOOTCAMP('showGUI called')
     g_bootcamp.hideActionWaitWindow()
     bootcampCtx = cPickle.loads(bootcampCtxStr)
     self.databaseID = bootcampCtx['databaseID']
     currentLesson = bootcampCtx['lessonNum']
     isBattleLesson = bootcampCtx['isBattleLesson']
     g_bootcamp.setAccount(self)
     g_bootcamp.setContext(bootcampCtx)
     events.isPlayerEntityChanging = False
     firstRun = currentLesson == 0 and not g_bootcamp.isRunning()
     events.onBootcampShowGUI(firstRun)
     if g_bootcamp.isRunning():
         g_bootcamp.onBattleLessonFinished(currentLesson, bootcampCtx['lessonResults'])
     elif not g_bootcamp.isManualStart():
         g_bootcamp.start(currentLesson, isBattleLesson)
Exemplo n.º 2
0
 def showGUI(self, ctx):
     LOG_DEBUG_DEV_BOOTCAMP('showGUI called')
     g_bootcamp.hideActionWaitWindow()
     ctx = cPickle.loads(ctx)
     guiCtx = ctx['gui']
     self.lobbyContext.onAccountShowGUI(guiCtx)
     self._initTimeCorrection(guiCtx)
     bootcampCtx = ctx['bootcamp']
     self.databaseID = bootcampCtx['databaseID']
     currentLesson = bootcampCtx['lessonNum']
     isBattleLesson = bootcampCtx['isBattleLesson']
     g_bootcamp.setAccount(self)
     g_bootcamp.setContext(bootcampCtx)
     events.isPlayerEntityChanging = False
     if g_bootcamp.isRunning():
         g_bootcamp.onBattleLessonFinished(currentLesson, bootcampCtx['lessonResults'])
     elif not g_bootcamp.isManualStart():
         g_bootcamp.start(currentLesson, isBattleLesson)