本文整理汇总了Python中direct.distributed.DistributedNode.DistributedNode.disable方法的典型用法代码示例。如果您正苦于以下问题:Python DistributedNode.disable方法的具体用法?Python DistributedNode.disable怎么用?Python DistributedNode.disable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类direct.distributed.DistributedNode.DistributedNode
的用法示例。
在下文中一共展示了DistributedNode.disable方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: disable
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import disable [as 别名]
def disable(self):
""" This method is called when the object is removed from the
scene, for instance because it left the zone. It is balanced
against generate(): for each generate(), there will be a
corresponding disable(). Everything that was done in
generate() or announceGenerate() should be undone in disable().
After a disable(), the object might be cached in memory in case
it will eventually reappear. The DistributedObject should be
prepared to receive another generate() for an object that has
already received disable().
Note that the above is only strictly true for *cacheable*
objects. Most objects are, by default, non-cacheable; you
have to call obj.setCacheable(True) (usually in the
constructor) to make it cacheable. Until you do this, your
non-cacheable object will always receive a delete() whenever
it receives a disable(), and it will never be stored in a
cache.
"""
# Take it out of the scene graph.
self.detachNode()
DistributedNode.disable(self)
示例2: disable
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import disable [as 别名]
def disable(self):
if self.avatarInTurret:
self.avatarInTurret.getPart('legs').show()
self.avatarInTurret.getPart('torso').show()
self.avatarInTurret.getPart('head').show()
self.avatarInTurret = None
self.removeCannon()
DistributedNode.disable(self)
return
示例3: disable
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import disable [as 别名]
def disable(self):
taskMgr.remove('showEnterMessage')
DistributedNode.disable(self)
if self.geom:
self.geom.removeNode()
self.unloadConnectors()
for request in self.pendingSetupConnector.itervalues():
self.cr.relatedObjectMgr.abortRequest(request)
self.pendingSetupConnector = { }
self.builder.delete()
self.builder = None
示例4: disable
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import disable [as 别名]
def disable(self):
self.ignore(self.uniqueName('enterShipDeploySphere'))
self.ignore(self.uniqueName('exitShipDeploySphere'))
self.ignore(self.uniqueName('enterShipDeploy-MaxSphereSoft'))
self.ignore(self.uniqueName('exitShipDeploy-MaxSphereSoft'))
self.ignore(self.uniqueName('enterShipDeploy-MaxSphereHard'))
self.ignore(self.uniqueName('exitShipDeploy-MaxSphereHard'))
self.ignore(self.uniqueName('enterShipDeploy-MinSphere'))
self.ignore(self.uniqueName('exitShipDeploy-MinSphere'))
self.ignore('settingLocalShip')
self.unlockMessages()
self.removeChildren()
self.minSphere = None
self.maxSphereSoft = None
self.maxSphereHard = None
self.deploySpheres = []
DistributedNode.disable(self)
示例5: disable
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import disable [as 别名]
def disable(self):
self.ignore('enter' + self.triggerNP.node().getName())
self.__removeAllBarrels()
self.barrels = None
self.numBarrels = None
if self.rope:
self.rope.removeNode()
self.rope = None
if self.pod:
self.pod.removeNode()
self.pod = None
if self.kart:
self.kart.removeNode()
self.kart = None
self.mg = None
DistributedNode.disable(self)
return
示例6: disable
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import disable [as 别名]
def disable(self):
self.fsm.requestFinalState()
if self.moPath:
self.moPath.stop()
self.moPath = None
self.moPaths = None
self.honkSfxPath = None
self.cartModelPath = None
self.soundEngineLoop = None
self.soundDriveBy = None
if self.suitInCar:
self.suitInCar.disable()
self.suitInCar.delete()
self.suitInCar = None
if self.cart:
self.cart.removeNode()
self.cart = None
del self.fsm
DistributedNode.disable(self)
return
示例7: disable
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import disable [as 别名]
def disable(self):
DistributedNode.disable(self)
self.stopProcessVisibility()
示例8: disable
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import disable [as 别名]
def disable(self):
self.unload()
DistributedNode.disable(self)
示例9: disable
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import disable [as 别名]
def disable(self):
self.inShop = False
self.snp = None
self.removeClerk()
DistributedNode.disable(self)
return
示例10: disable
# 需要导入模块: from direct.distributed.DistributedNode import DistributedNode [as 别名]
# 或者: from direct.distributed.DistributedNode.DistributedNode import disable [as 别名]
def disable(self):
DistributedNode.disable(self)
del self.trolleyStation
del self.trolleyCar