本文整理匯總了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))