当前位置: 首页>>代码示例>>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;未经允许,请勿转载。