當前位置: 首頁>>代碼示例>>Python>>正文


Python AbstractParser.pluginsStarted方法代碼示例

本文整理匯總了Python中b3.parsers.frostbite2.abstractParser.AbstractParser.pluginsStarted方法的典型用法代碼示例。如果您正苦於以下問題:Python AbstractParser.pluginsStarted方法的具體用法?Python AbstractParser.pluginsStarted怎麽用?Python AbstractParser.pluginsStarted使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在b3.parsers.frostbite2.abstractParser.AbstractParser的用法示例。


在下文中一共展示了AbstractParser.pluginsStarted方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: pluginsStarted

# 需要導入模塊: from b3.parsers.frostbite2.abstractParser import AbstractParser [as 別名]
# 或者: from b3.parsers.frostbite2.abstractParser.AbstractParser import pluginsStarted [as 別名]
 def pluginsStarted(self):
     """
     Called after the parser loaded and started all plugins.
     """
     AbstractParser.pluginsStarted(self)
     self.info('Connecting all players...')
     plist = self.getPlayerList()
     for cid, p in plist.iteritems():
         self.getClient(cid)
開發者ID:HaoDrang,項目名稱:big-brother-bot,代碼行數:11,代碼來源:bf4.py

示例2: pluginsStarted

# 需要導入模塊: from b3.parsers.frostbite2.abstractParser import AbstractParser [as 別名]
# 或者: from b3.parsers.frostbite2.abstractParser.AbstractParser import pluginsStarted [as 別名]
 def pluginsStarted(self):
     AbstractParser.pluginsStarted(self)
     self.info('connecting all players...')
     plist = self.getPlayerList()
     for cid, p in plist.iteritems():
         client = self.clients.getByCID(cid)
         if not client:
             #self.clients.newClient(playerdata['cid'], guid=playerdata['guid'], name=playerdata['name'], team=playerdata['team'], squad=playerdata['squad'])
             name = p['name']
             self.debug('client %s found on the server' % cid)
             client = self.clients.newClient(cid, guid=p['name'], name=name, team=p['teamId'], squad=p['squadId'], data=p)
             self.queueEvent(b3.events.Event(b3.events.EVT_CLIENT_JOIN, p, client))
開發者ID:adamc884,項目名稱:big-brother-bot,代碼行數:14,代碼來源:bf3.py

示例3: pluginsStarted

# 需要導入模塊: from b3.parsers.frostbite2.abstractParser import AbstractParser [as 別名]
# 或者: from b3.parsers.frostbite2.abstractParser.AbstractParser import pluginsStarted [as 別名]
 def pluginsStarted(self):
     """
     Called after the parser loaded and started all plugins.
     """
     AbstractParser.pluginsStarted(self)
     self.info('Connecting all players...')
     plist = self.getPlayerList()
     for cid, p in plist.iteritems():
         client = self.clients.getByCID(cid)
         if not client:
             self.debug('Client %s found on the server' % cid)
             client = self.clients.newClient(cid, guid=p['name'], name=p['name'], team=p['teamId'], squad=p['squadId'], data=p)
             self.queueEvent(self.getEvent('EVT_CLIENT_JOIN', data=p, client=client))
開發者ID:82ndab-Bravo17,項目名稱:big-brother-bot,代碼行數:15,代碼來源:bf3.py


注:本文中的b3.parsers.frostbite2.abstractParser.AbstractParser.pluginsStarted方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。