コード例 #1
0
ファイル: account.py プロジェクト: Infernux/Projects
 def onBecomeNonPlayer(self):
     LOG_DEBUG('Account.onBecomeNonPlayer()')
     if not (hasattr(self, 'isPlayer') and self.isPlayer):
         return 
     self.isPlayer = False
     chatManager.switchPlayerProxy(None)
     self.syncData.onAccountBecomeNonPlayer()
     self.inventory.onAccountBecomeNonPlayer()
     self.stats.onAccountBecomeNonPlayer()
     self.questProgress.onAccountBecomeNonPlayer()
     self.trader.onAccountBecomeNonPlayer()
     self.shop.onAccountBecomeNonPlayer()
     self.dossierCache.onAccountBecomeNonPlayer()
     self.battleResultsCache.onAccountBecomeNonPlayer()
     self.intUserSettings.onProxyBecomeNonPlayer()
     self.__cancelCommands()
     self.syncData.setAccount(None)
     self.inventory.setAccount(None)
     self.stats.setAccount(None)
     self.questProgress.setAccount(None)
     self.trader.setAccount(None)
     self.shop.setAccount(None)
     self.dossierCache.setAccount(None)
     self.battleResultsCache.setAccount(None)
     self.intUserSettings.setProxy(None, None)
     self.fort.clear()
     events.onAccountBecomeNonPlayer()
     del self.inputHandler
コード例 #2
0
ファイル: account.py プロジェクト: wanyancan/WOTDecompiled
 def onBecomeNonPlayer(self):
     LOG_DEBUG('Account.onBecomeNonPlayer()')
     if hasattr(self, 'isPlayer'):
         return self.isPlayer or None
     else:
         self.isPlayer = False
         chatManager.switchPlayerProxy(None)
         self.syncData.onAccountBecomeNonPlayer()
         self.inventory.onAccountBecomeNonPlayer()
         self.stats.onAccountBecomeNonPlayer()
         self.questProgress.onAccountBecomeNonPlayer()
         self.trader.onAccountBecomeNonPlayer()
         self.shop.onAccountBecomeNonPlayer()
         self.dossierCache.onAccountBecomeNonPlayer()
         self.battleResultsCache.onAccountBecomeNonPlayer()
         self.intUserSettings.onProxyBecomeNonPlayer()
         self.__cancelCommands()
         self.syncData.setAccount(None)
         self.inventory.setAccount(None)
         self.stats.setAccount(None)
         self.questProgress.setAccount(None)
         self.trader.setAccount(None)
         self.shop.setAccount(None)
         self.dossierCache.setAccount(None)
         self.battleResultsCache.setAccount(None)
         self.intUserSettings.setProxy(None, None)
         events.onAccountBecomeNonPlayer()
         del self.inputHandler
         return
コード例 #3
0
ファイル: Account.py プロジェクト: jhakonen/wot-teamspeak-mod
	def onBecomeNonPlayer(self):
		g_playerEvents.onAccountBecomeNonPlayer()
コード例 #4
0
 def onBecomeNonPlayer(self):
     g_playerEvents.onAccountBecomeNonPlayer()