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


Python DistCogdoLevelGame.privGotSpec方法代码示例

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


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

示例1: privGotSpec

# 需要导入模块: from toontown.cogdominium.DistCogdoLevelGame import DistCogdoLevelGame [as 别名]
# 或者: from toontown.cogdominium.DistCogdoLevelGame.DistCogdoLevelGame import privGotSpec [as 别名]
 def privGotSpec(self, levelSpec):
     DistCogdoLevelGame.privGotSpec(self, levelSpec)
     levelMgr = self.getEntity(LevelConstants.LevelMgrEntId)
     self.endVault = levelMgr.geom
     self.endVault.reparentTo(self.geomRoot)
     self.endVault.findAllMatches('**/MagnetArms').detach()
     self.endVault.findAllMatches('**/Safes').detach()
     self.endVault.findAllMatches('**/MagnetControlsAll').detach()
     cn = self.endVault.find('**/wallsCollision').node()
     cn.setIntoCollideMask(OTPGlobals.WallBitmask | ToontownGlobals.PieBitmask | PM.BitMask32.lowerOn(3) << 21)
     walls = self.endVault.find('**/RollUpFrameCillison')
     walls.detachNode()
     self.evWalls = self.replaceCollisionPolysWithPlanes(walls)
     self.evWalls.reparentTo(self.endVault)
     self.evWalls.stash()
     floor = self.endVault.find('**/EndVaultFloorCollision')
     floor.detachNode()
     self.evFloor = self.replaceCollisionPolysWithPlanes(floor)
     self.evFloor.reparentTo(self.endVault)
     self.evFloor.setName('floor')
     plane = PM.CollisionPlane(PM.Plane(PM.Vec3(0, 0, 1), PM.Point3(0, 0, -50)))
     planeNode = PM.CollisionNode('dropPlane')
     planeNode.addSolid(plane)
     planeNode.setCollideMask(ToontownGlobals.PieBitmask)
     self.geomRoot.attachNewNode(planeNode)
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:27,代码来源:DistCogdoCraneGame.py


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