当前位置: 首页>>代码示例>>Python>>正文


Python ZoneUtil.getBranchLoaderName方法代码示例

本文整理汇总了Python中toontown.hood.ZoneUtil.getBranchLoaderName方法的典型用法代码示例。如果您正苦于以下问题:Python ZoneUtil.getBranchLoaderName方法的具体用法?Python ZoneUtil.getBranchLoaderName怎么用?Python ZoneUtil.getBranchLoaderName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在toontown.hood.ZoneUtil的用法示例。


在下文中一共展示了ZoneUtil.getBranchLoaderName方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: kickToPlayground

# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import getBranchLoaderName [as 别名]
 def kickToPlayground(self, retCode):
     if retCode == 0:
         msg = TTLocalizer.EstateOwnerLeftMessage % HouseGlobals.BOOT_GRACE_PERIOD
         self.__popupKickoutMessage(msg)
     elif retCode == 1:
         zoneId = base.localAvatar.lastHood
         self.doneStatus = {'loader': ZoneUtil.getBranchLoaderName(zoneId),
          'where': ZoneUtil.getToonWhereName(zoneId),
          'how': 'teleportIn',
          'hoodId': zoneId,
          'zoneId': zoneId,
          'shardId': None,
          'avId': -1}
         messenger.send(self.doneEvent)
     elif retCode == 2:
         zoneId = base.localAvatar.lastHood
         self.doneStatus = {'loader': ZoneUtil.getBranchLoaderName(zoneId),
          'where': ZoneUtil.getToonWhereName(zoneId),
          'how': 'teleportIn',
          'hoodId': zoneId,
          'zoneId': zoneId,
          'shardId': None,
          'avId': -1}
         messenger.send(self.doneEvent)
     else:
         self.notify.error('unknown reason for exiting estate')
开发者ID:CalebSmith376,项目名称:src,代码行数:28,代码来源:EstateHood.py

示例2: __lightDecorationOn__

# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import getBranchLoaderName [as 别名]
		def __lightDecorationOn__():
			try:
				geom = base.cr.playGame.getPlace().loader.geom
			except:
				loaderId = ZoneUtil.getBranchLoaderName(2000) # TEMP hack. This will port you to ttc if ^ fails
				whereId = ZoneUtil.getToonWhereName(200)
				how = 'teleportIn'
				print ("This Should not happen.")
				requestStatus = [{
				'loader': loaderId,
				'where': whereId,
				'how': how,
				'hoodId': 2000,
				'zoneId': 2000,
				'shardId': None,
				'avId': -1
				}]
				base.cr.playGame.getPlace().fsm.forceTransition('teleportOut', requestStatus)
			self.loader.hood.eventLights = geom.findAllMatches('**/*light*')
			self.loader.hood.eventLights += geom.findAllMatches('**/*lamp*')
			self.loader.hood.eventLights += geom.findAllMatches('**/prop_snow_tree*')
			self.loader.hood.eventLights += geom.findAllMatches('**/prop_tree*')
			self.loader.hood.eventLights += geom.findAllMatches('**/*christmas*')
			for light in self.loader.hood.eventLights:
				light.setColorScaleOff(1)
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leak,代码行数:27,代码来源:Street.py

示例3: requestTeleport

# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import getBranchLoaderName [as 别名]
 def requestTeleport(self, loaderId, whereId, hoodId, zoneId, avId):
     place = base.cr.playGame.getPlace()
     if loaderId == "":
         loaderId = ZoneUtil.getBranchLoaderName(zoneId)
     if whereId == "":
         whereId = ZoneUtil.getToonWhereName(zoneId)
     if hoodId == 0:
         hoodId = place.loader.hood.id
     if avId == 0:
         avId = -1
     place.fsm.forceTransition(
         "teleportOut",
         [
             {
                 "loader": loaderId,
                 "where": whereId,
                 "how": "teleportIn",
                 "hoodId": hoodId,
                 "zoneId": zoneId,
                 "shardId": None,
                 "avId": avId,
             }
         ],
     )
     return
开发者ID:BmanGames,项目名称:Toontown-Level-Editor,代码行数:27,代码来源:ToontownMagicWordManager.py

示例4: getRequestStatus

# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import getBranchLoaderName [as 别名]
 def getRequestStatus(self):
     zoneId = self.otherZoneId
     request = {'loader': ZoneUtil.getBranchLoaderName(zoneId),
      'where': ZoneUtil.getToonWhereName(zoneId),
      'how': 'doorIn',
      'hoodId': ZoneUtil.getHoodId(zoneId),
      'zoneId': zoneId,
      'shardId': None,
      'avId': -1,
      'allowRedirect': 0,
      'doorDoId': self.otherDoId}
     return request
开发者ID:Teku16,项目名称:MikeyTheRepository,代码行数:14,代码来源:DistributedDoor.py

示例5: enterReward

# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import getBranchLoaderName [as 别名]
 def enterReward(self, ts = 0):
     base.localAvatar.b_setParent(ToontownGlobals.SPHidden)
     request = {'loader': ZoneUtil.getBranchLoaderName(self.extZoneId),
      'where': ZoneUtil.getToonWhereName(self.extZoneId),
      'how': 'elevatorIn',
      'hoodId': ZoneUtil.getHoodId(self.extZoneId),
      'zoneId': self.extZoneId,
      'shardId': None,
      'avId': -1,
      'bldgDoId': self.distBldgDoId}
     messenger.send('DSIDoneEvent', [request])
     return
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:14,代码来源:DistributedSuitInterior.py

示例6: enterReward

# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import getBranchLoaderName [as 别名]
 def enterReward(self, ts=0):
     base.localAvatar.b_setParent(ToontownGlobals.SPHidden)
     request = {
         "loader": ZoneUtil.getBranchLoaderName(self.extZoneId),
         "where": ZoneUtil.getToonWhereName(self.extZoneId),
         "how": "elevatorIn",
         "hoodId": ZoneUtil.getHoodId(self.extZoneId),
         "zoneId": self.extZoneId,
         "shardId": None,
         "avId": base.localAvatar.doId,
         "bldgDoId": self.distBldgDoId,
     }
     messenger.send("DSIDoneEvent", [request])
     return
开发者ID:vincent15k,项目名称:Toontown-House,代码行数:16,代码来源:DistributedSuitInterior.py

示例7: exitCogdoBuilding

# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import getBranchLoaderName [as 别名]
 def exitCogdoBuilding(self):
     if base.localAvatar.hp < 0:
         return
     base.localAvatar.b_setParent(ToontownGlobals.SPHidden)
     request = {
         "loader": ZoneUtil.getBranchLoaderName(self.extZoneId),
         "where": ZoneUtil.getToonWhereName(self.extZoneId),
         "how": "elevatorIn",
         "hoodId": ZoneUtil.getHoodId(self.extZoneId),
         "zoneId": self.extZoneId,
         "shardId": None,
         "avId": -1,
         "bldgDoId": self.distBldgDoId,
     }
     messenger.send("DSIDoneEvent", [request])
     return
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leaked-Source,代码行数:18,代码来源:DistributedCogdoInterior.py

示例8: requestTeleport

# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import getBranchLoaderName [as 别名]
 def requestTeleport(self, loaderId, whereId, hoodId, zoneId, avId):
     place = base.cr.playGame.getPlace()
     if loaderId == '':
         loaderId = ZoneUtil.getBranchLoaderName(zoneId)
     if whereId == '':
         whereId = ZoneUtil.getToonWhereName(zoneId)
     if hoodId == 0:
         hoodId = place.loader.hood.id
     if avId == 0:
         avId = -1
     place.fsm.forceTransition('teleportOut', [{'loader': loaderId,
       'where': whereId,
       'how': 'teleportIn',
       'hoodId': hoodId,
       'zoneId': zoneId,
       'shardId': None,
       'avId': avId}])
     return
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:20,代码来源:ToontownMagicWordManager.py

示例9: kickToPlayground

# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import getBranchLoaderName [as 别名]
 def kickToPlayground(self, retCode):
     if retCode == 0:
         msg = TTLocalizer.PartyOverWarningNoName
         if hasattr(base, 'distributedParty') and base.distributedParty:
             name = base.distributedParty.hostName
             msg = TTLocalizer.PartyOverWarningWithName % TTLocalizer.GetPossesive(name)
         self.__popupKickoutMessage(msg)
         base.localAvatar.setTeleportAvailable(0)
     if retCode == 1:
         zoneId = base.localAvatar.lastHood
         self.doneStatus = {'loader': ZoneUtil.getBranchLoaderName(zoneId),
          'where': ZoneUtil.getToonWhereName(zoneId),
          'how': 'teleportIn',
          'hoodId': zoneId,
          'zoneId': zoneId,
          'shardId': None,
          'avId': -1}
         messenger.send(self.doneEvent)
     return
开发者ID:frogtongue,项目名称:tonguefrog,代码行数:21,代码来源:PartyHood.py


注:本文中的toontown.hood.ZoneUtil.getBranchLoaderName方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。