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


Python ZoneUtil.isInterior方法代码示例

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


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

示例1: exitDoorEnterClosing

# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import isInterior [as 别名]
 def exitDoorEnterClosing(self, ts):
     doorFrameHoleLeft = self.findDoorNode('doorFrameHoleLeft')
     if doorFrameHoleLeft.isEmpty():
         self.notify.warning('enterOpening(): did not find flatDoors')
         return
     if ZoneUtil.isInterior(self.zoneId):
         doorFrameHoleLeft.setColor(1.0, 1.0, 1.0, 1.0)
     if self.leftSwing:
         h = -100
     else:
         h = 100
     leftDoor = self.findDoorNode('leftDoor')
     if not leftDoor.isEmpty():
         otherNP = self.getDoorNodePath()
         trackName = 'doorExitTrack-%d' % self.doId
         self.doorExitTrack = Parallel(Sequence(LerpHprInterval(nodePath=leftDoor, duration=1.0, hpr=VBase3(0, 0, 0), startHpr=VBase3(h, 0, 0), other=otherNP, blendType='easeInOut'), Func(doorFrameHoleLeft.hide), Func(self.hideIfHasFlat, leftDoor)), Sequence(Wait(0.5), SoundInterval(self.closeSfx, node=leftDoor)), name=trackName)
         self.doorExitTrack.start(ts)
开发者ID:CalebSmith376,项目名称:src,代码行数:19,代码来源:DistributedCogHQDoor.py

示例2: teleportToShop

# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import isInterior [as 别名]
 def teleportToShop(self, npcId):
     npcZone = NPCToons.getNPCZone(npcId)
     npcHood = ZoneUtil.getCanonicalHoodId(npcZone)
     avZone = base.localAvatar.getZoneId()
     avHood = ZoneUtil.getCanonicalHoodId(avZone)
     avShard = base.localAvatar.defaultShard
     avPlace = base.cr.playGame.getPlace()
     hqZone = {2000:2520, 1000:1507, 3000:3508, 4000:4504, 5000:5502, 7000:7503, 9000:9505}
     def callback(flag):
         if flag:
             npcZone = None
     base.cr.buildingQueryMgr.d_isSuit(npcZone, callback)
     if avShard not in base.cr.activeDistrictMap:
         return
     if npcZone in [-1, 0, None]:
         return
     if not ZoneUtil.isInterior(npcZone):
         return
     if ZoneUtil.isHQ(npcZone):
         args = (avHood, hqZone[avHood], avShard, -1)
     else:
         args = (npcHood, npcZone, avShard, -1)
     avPlace.requestTeleport(*args)
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:25,代码来源:QuestPoster.py

示例3: wantsNametag

# 需要导入模块: from toontown.hood import ZoneUtil [as 别名]
# 或者: from toontown.hood.ZoneUtil import isInterior [as 别名]
 def wantsNametag(self):
     return not ZoneUtil.isInterior(self.zoneId)
开发者ID:Teku16,项目名称:MikeyTheRepository,代码行数:4,代码来源:DistributedDoor.py


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