示例#1
0
 def showGUI(self, ctx):
     ctx = cPickle.loads(ctx)
     LOG_MX('showGUI', ctx)
     self.databaseID = ctx['databaseID']
     if 'prebattleID' in ctx:
         self.prebattle = ClientPrebattle.ClientPrebattle(ctx['prebattleID'])
     self.isInRandomQueue = ctx.get('isInRandomQueue', False)
     self.isInTutorialQueue = ctx.get('isInTutorialQueue', False)
     self.isInTutorialQueue = ctx.get('isInUnitAssembler', False)
     if 'serverUTC' in ctx:
         import helpers.time_utils as tm
         tm.setTimeCorrection(ctx['serverUTC'])
     if 'isLongDisconnectedFromCenter' in ctx:
         isLongDisconnectedFromCenter = ctx['isLongDisconnectedFromCenter']
         if self.isLongDisconnectedFromCenter != isLongDisconnectedFromCenter:
             self.isLongDisconnectedFromCenter = isLongDisconnectedFromCenter
             events.onCenterIsLongDisconnected(isLongDisconnectedFromCenter)
     events.isPlayerEntityChanging = False
     events.onAccountShowGUI(ctx)
     BigWorld.Screener.setUserId(self.databaseID)
示例#2
0
 def showGUI(self, ctx):
     ctx = cPickle.loads(ctx)
     LOG_MX('showGUI', ctx)
     self.databaseID = ctx['databaseID']
     if 'prebattleID' in ctx:
         self.prebattle = ClientPrebattle.ClientPrebattle(ctx['prebattleID'])
     self.isInRandomQueue = ctx.get('isInRandomQueue', False)
     self.isInTutorialQueue = ctx.get('isInTutorialQueue', False)
     self.isInTutorialQueue = ctx.get('isInUnitAssembler', False)
     if 'serverUTC' in ctx:
         import helpers.time_utils as tm
         tm.setTimeCorrection(ctx['serverUTC'])
     if 'isLongDisconnectedFromCenter' in ctx:
         isLongDisconnectedFromCenter = ctx['isLongDisconnectedFromCenter']
         if self.isLongDisconnectedFromCenter != isLongDisconnectedFromCenter:
             self.isLongDisconnectedFromCenter = isLongDisconnectedFromCenter
             events.onCenterIsLongDisconnected(isLongDisconnectedFromCenter)
     events.isPlayerEntityChanging = False
     events.onAccountShowGUI(ctx)
     BigWorld.Screener.setUserId(self.databaseID)
示例#3
0
 def onCenterIsLongDisconnected(self, isLongDisconnected):
     LOG_DEBUG('onCenterIsLongDisconnected', isLongDisconnected)
     self.isLongDisconnectedFromCenter = isLongDisconnected
     events.onCenterIsLongDisconnected(isLongDisconnected)
示例#4
0
 def onCenterIsLongDisconnected(self, isLongDisconnected):
     LOG_DEBUG('onCenterIsLongDisconnected', isLongDisconnected)
     self.isLongDisconnectedFromCenter = isLongDisconnected
     events.onCenterIsLongDisconnected(isLongDisconnected)