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


Python DistributedLevel.DistributedLevel类代码示例

本文整理汇总了Python中otp.level.DistributedLevel.DistributedLevel的典型用法代码示例。如果您正苦于以下问题:Python DistributedLevel类的具体用法?Python DistributedLevel怎么用?Python DistributedLevel使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: levelAnnounceGenerate

 def levelAnnounceGenerate(self):
     self.notify.debug('levelAnnounceGenerate')
     DistributedLevel.levelAnnounceGenerate(self)
     spec = self.getLevelSpec()
     if __dev__:
         typeReg = self.getEntityTypeReg()
         spec.setEntityTypeReg(typeReg)
     DistributedLevel.initializeLevel(self, spec)
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:8,代码来源:DistCogdoLevelGame.py

示例2: delete

 def delete(self):
     DistCogdoGame.delete(self)
     DistributedLevel.delete(self)
     if __dev__:
         bboard.removeIfEqual(EditorGlobals.EditTargetPostName, self)
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:5,代码来源:DistCogdoLevelGame.py

示例3: disable

 def disable(self):
     if __dev__:
         self.stopHandleEdits()
     DistCogdoGame.disable(self)
     DistributedLevel.disable(self)
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:5,代码来源:DistCogdoLevelGame.py

示例4: placeLocalToon

 def placeLocalToon(self):
     DistributedLevel.placeLocalToon(self, moveLocalAvatar=False)
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:2,代码来源:DistCogdoLevelGame.py

示例5: initVisibility

 def initVisibility(self):
     levelMgr = self.getEntity(LevelConstants.LevelMgrEntId)
     levelMgr.geom.reparentTo(render)
     DistributedLevel.initVisibility(self)
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:4,代码来源:DistCogdoLevelGame.py

示例6: privGotSpec

 def privGotSpec(self, levelSpec):
     if __dev__:
         if not levelSpec.hasEntityTypeReg():
             typeReg = self.getEntityTypeReg()
             levelSpec.setEntityTypeReg(typeReg)
     DistributedLevel.privGotSpec(self, levelSpec)
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:6,代码来源:DistCogdoLevelGame.py

示例7: announceGenerate

 def announceGenerate(self):
     DistributedLevel.announceGenerate(self)
     DistCogdoGame.announceGenerate(self)
     if __dev__:
         self.startHandleEdits()
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:5,代码来源:DistCogdoLevelGame.py

示例8: __init__

 def __init__(self, cr):
     DistributedLevel.__init__(self, cr)
     DistCogdoGame.__init__(self, cr)
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:3,代码来源:DistCogdoLevelGame.py

示例9: generate

 def generate(self):
     DistributedLevel.generate(self)
     DistCogdoGame.generate(self)
     if __dev__:
         bboard.post(EditorGlobals.EditTargetPostName, self)
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:5,代码来源:DistCogdoLevelGame.py

示例10: delete

 def delete(self):
     DistCogdoGame.delete(self)
     DistributedLevel.delete(self)
开发者ID:BmanGames,项目名称:ToontownStride,代码行数:3,代码来源:DistCogdoLevelGame.py

示例11: disable

 def disable(self):
     DistCogdoGame.disable(self)
     DistributedLevel.disable(self)
开发者ID:BmanGames,项目名称:ToontownStride,代码行数:3,代码来源:DistCogdoLevelGame.py

示例12: levelAnnounceGenerate

 def levelAnnounceGenerate(self):
     self.notify.debug('levelAnnounceGenerate')
     DistributedLevel.levelAnnounceGenerate(self)
     DistributedLevel.initializeLevel(self, LevelSpec(self.getSpec()))
开发者ID:BmanGames,项目名称:ToontownStride,代码行数:4,代码来源:DistCogdoLevelGame.py

示例13: announceGenerate

 def announceGenerate(self):
     DistributedLevel.announceGenerate(self)
     DistCogdoGame.announceGenerate(self)
开发者ID:BmanGames,项目名称:ToontownStride,代码行数:3,代码来源:DistCogdoLevelGame.py

示例14: generate

 def generate(self):
     DistributedLevel.generate(self)
     DistCogdoGame.generate(self)
开发者ID:BmanGames,项目名称:ToontownStride,代码行数:3,代码来源:DistCogdoLevelGame.py


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