Пример #1
0
 def onStateLobby(self):
     trace('onStateLobby')
     try:
         accountDBID = getCurrentAccountDBID()
         if accountDBID is not None and self.currentAccountDBID != accountDBID:
             self.currentAccountDBID = accountDBID
             config.token = config.XvmServicesToken({'accountDBID':accountDBID})
             config.token.saveLastAccountDBID()
             self.xvmServicesInitialized = False
             self.initializeXvmServices()
         reserve.init(self.currentAccountDBID)
     except Exception, ex:
         err(traceback.format_exc())
Пример #2
0
 def onStateLogin(self):
     trace('onStateLogin')
     if self.currentAccountDBID is not None:
         self.currentAccountDBID = None
         config.token = config.XvmServicesToken()
     reserve.init(None)