本文整理汇总了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)
示例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))
示例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))