本文整理汇总了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)
示例2: delete
def delete(self):
DistCogdoGame.delete(self)
DistributedLevel.delete(self)
if __dev__:
bboard.removeIfEqual(EditorGlobals.EditTargetPostName, self)
示例3: disable
def disable(self):
if __dev__:
self.stopHandleEdits()
DistCogdoGame.disable(self)
DistributedLevel.disable(self)
示例4: placeLocalToon
def placeLocalToon(self):
DistributedLevel.placeLocalToon(self, moveLocalAvatar=False)
示例5: initVisibility
def initVisibility(self):
levelMgr = self.getEntity(LevelConstants.LevelMgrEntId)
levelMgr.geom.reparentTo(render)
DistributedLevel.initVisibility(self)
示例6: privGotSpec
def privGotSpec(self, levelSpec):
if __dev__:
if not levelSpec.hasEntityTypeReg():
typeReg = self.getEntityTypeReg()
levelSpec.setEntityTypeReg(typeReg)
DistributedLevel.privGotSpec(self, levelSpec)
示例7: announceGenerate
def announceGenerate(self):
DistributedLevel.announceGenerate(self)
DistCogdoGame.announceGenerate(self)
if __dev__:
self.startHandleEdits()
示例8: __init__
def __init__(self, cr):
DistributedLevel.__init__(self, cr)
DistCogdoGame.__init__(self, cr)
示例9: generate
def generate(self):
DistributedLevel.generate(self)
DistCogdoGame.generate(self)
if __dev__:
bboard.post(EditorGlobals.EditTargetPostName, self)
示例10: delete
def delete(self):
DistCogdoGame.delete(self)
DistributedLevel.delete(self)
示例11: disable
def disable(self):
DistCogdoGame.disable(self)
DistributedLevel.disable(self)
示例12: levelAnnounceGenerate
def levelAnnounceGenerate(self):
self.notify.debug('levelAnnounceGenerate')
DistributedLevel.levelAnnounceGenerate(self)
DistributedLevel.initializeLevel(self, LevelSpec(self.getSpec()))
示例13: announceGenerate
def announceGenerate(self):
DistributedLevel.announceGenerate(self)
DistCogdoGame.announceGenerate(self)
示例14: generate
def generate(self):
DistributedLevel.generate(self)
DistCogdoGame.generate(self)