def enterCloseShard(self, loginState=None):
     if loginState == 'waitForAvatarList':
         self.loadingScreen.showTarget(pickapirate=True)
     elif loginState == 'shutdown':
         self.loadingScreen.showTarget(exit=True)
     self.loadingScreen.show()
     base.disableZoneLODs()
     self._processVisStopIW = InterestWatcher(self, 'stopProcessViz')
     self.acceptOnce(self._processVisStopIW.getDoneEvent(),
                     Functor(self._removeShardObjects, loginState))
     messenger.send(PiratesClientRepository.StopVisibilityEvent)
     self._processVisStopIW.stopCollect()
     OTPClientRepository.enterCloseShard(self, loginState)
Exemplo n.º 2
0
 def enterCloseShard(self, loginState = None):
     if loginState == 'waitForAvatarList':
         self.loadingScreen.showTarget(pickapirate = True)
     elif loginState == 'shutdown':
         self.loadingScreen.showTarget(exit = True)
     
     self.loadingScreen.show()
     base.disableZoneLODs()
     self._processVisStopIW = InterestWatcher(self, 'stopProcessViz')
     self.acceptOnce(self._processVisStopIW.getDoneEvent(), Functor(self._removeShardObjects, loginState))
     messenger.send(PiratesClientRepository.StopVisibilityEvent)
     self._processVisStopIW.stopCollect()
     OTPClientRepository.enterCloseShard(self, loginState)