本文整理汇总了Python中toontown.hood.ZoneUtil.getWhereName方法的典型用法代码示例。如果您正苦于以下问题:Python ZoneUtil.getWhereName方法的具体用法?Python ZoneUtil.getWhereName怎么用?Python ZoneUtil.getWhereName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类toontown.hood.ZoneUtil
的用法示例。
在下文中一共展示了ZoneUtil.getWhereName方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: localToonDied
# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import getWhereName [as 别名]
def localToonDied(self):
target_sz = ZoneUtil.getSafeZoneId(localAvatar.defaultZone)
place = self.cr.playGame.getPlace()
place.fsm.request(
'died',
[{'loader': ZoneUtil.getLoaderName(target_sz),
'where': ZoneUtil.getWhereName(target_sz, 1),
'how': 'teleportIn', 'hoodId': target_sz, 'zoneId': target_sz,
'shardId': None, 'avId': -1, 'battle': 1}])
return
示例2: forcedExit
# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import getWhereName [as 别名]
def forcedExit(self, avId):
target_sz = base.localAvatar.defaultZone
base.cr.playGame.getPlace().fsm.request('teleportOut', [{'loader': ZoneUtil.getLoaderName(target_sz),
'where': ZoneUtil.getWhereName(target_sz, 1),
'how': 'teleportIn',
'hoodId': target_sz,
'zoneId': target_sz,
'shardId': None,
'avId': -1}], force=1)
return
示例3: forcedExit
# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import getWhereName [as 别名]
def forcedExit(self, avId):
target_sz = base.localAvatar.defaultZone
base.cr.playGame.getPlace().fsm.request(
"teleportOut",
[
{
"loader": ZoneUtil.getLoaderName(target_sz),
"where": ZoneUtil.getWhereName(target_sz, 1),
"how": "teleportIn",
"hoodId": target_sz,
"zoneId": target_sz,
"shardId": None,
"avId": -1,
}
],
force=1,
)