本文整理汇总了Python中toontown.distributed.DelayDelete.cleanupDelayDeletes方法的典型用法代码示例。如果您正苦于以下问题:Python DelayDelete.cleanupDelayDeletes方法的具体用法?Python DelayDelete.cleanupDelayDeletes怎么用?Python DelayDelete.cleanupDelayDeletes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类toontown.distributed.DelayDelete
的用法示例。
在下文中一共展示了DelayDelete.cleanupDelayDeletes方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: avatarExit
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def avatarExit(self, avatarId):
if avatarId == self.avatarId:
for track in self.avatarTracks:
track.finish()
DelayDelete.cleanupDelayDeletes(track)
self.avatarTracks = []
示例2: clearToonTrack
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def clearToonTrack(self, avId):
oldTrack = self._DistributedClubElevator__toonTracks.get(avId)
if oldTrack:
oldTrack.pause()
if self._DistributedClubElevator__toonTracks.get(avId):
DelayDelete.cleanupDelayDeletes(self._DistributedClubElevator__toonTracks[avId])
del self._DistributedClubElevator__toonTracks[avId]
示例3: clearToonTrack
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def clearToonTrack(self, avId):
oldTrack = self.__toonTracks.get(avId)
if oldTrack:
oldTrack.pause()
if self.__toonTracks.get(avId):
DelayDelete.cleanupDelayDeletes(self.__toonTracks[avId])
del self.__toonTracks[avId]
示例4: exitBarrelRoomIntro
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def exitBarrelRoomIntro(self):
if self._wantBarrelRoom and not self.isBossFloor(self.currentFloor):
self.ignore(self.barrelRoomIntroDoneEvent)
if self.barrelRoomIntroTrack:
self.barrelRoomIntroTrack.finish()
DelayDelete.cleanupDelayDeletes(self.barrelRoomIntroTrack)
self.barrelRoomIntroTrack = None
示例5: exitPlaying
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def exitPlaying(self):
DistributedAnimatedProp.DistributedAnimatedProp.exitPlaying(self)
for track in self.avatarTracks:
track.finish()
DelayDelete.cleanupDelayDeletes(track)
self.avatarTracks = []
self.avatarId = 0
示例6: stopTracks
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def stopTracks(self):
for track in self.avatarTracks:
track.pause()
DelayDelete.cleanupDelayDeletes(track)
self.cleanupTrack()
self.avatarTracks = []
self.avatarId = 0
示例7: exitReward
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def exitReward(self):
self.notify.debug('exitReward')
if self.penthouseOutroTrack:
self.penthouseOutroTrack.finish()
DelayDelete.cleanupDelayDeletes(self.penthouseOutroTrack)
self.penthouseOutroTrack = None
if not self.penthouseOutroChatDoneTrack:
self.notify.debug('exitReward: instanting outroPenthouseChatDone track')
self.__outroPenthouseChatDone()
self.penthouseOutroChatDoneTrack.finish()
self.penthouseOutroChatDoneTrack = None
示例8: finishAllTracks
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def finishAllTracks(self):
self.finishDoorTrack()
self.finishDoorExitTrack()
for t in self.avatarTracks:
t.finish()
DelayDelete.cleanupDelayDeletes(t)
self.avatarTracks = []
for t in self.avatarExitTracks:
t.finish()
DelayDelete.cleanupDelayDeletes(t)
self.avatarExitTracks = []
示例9: clearInterval
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def clearInterval(self, name, finish = 1):
if name in self.activeIntervals:
ival = self.activeIntervals[name]
if finish:
ival.finish()
else:
ival.pause()
if name in self.activeIntervals:
DelayDelete.cleanupDelayDeletes(ival)
del self.activeIntervals[name]
else:
self.notify.debug('interval: %s already cleared' % name)
示例10: cleanupIntervals
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def cleanupIntervals(self):
for interval in self.activeIntervals.values():
interval.finish()
DelayDelete.cleanupDelayDeletes(interval)
self.activeIntervals = {}
示例11: exitDoorExitOpen
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def exitDoorExitOpen(self):
for track in self.avatarExitTracks:
track.finish()
DelayDelete.cleanupDelayDeletes(track)
self.avatarExitTracks = []
示例12: _deleteTransitionTrack
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def _deleteTransitionTrack(self):
if self.transitionTrack:
DelayDelete.cleanupDelayDeletes(self.transitionTrack)
self.transitionTrack = None
return
示例13: clearToonTrack
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def clearToonTrack(self, avId):
oldTrack = self.__toonTracks.get(avId)
if oldTrack:
oldTrack.pause()
DelayDelete.cleanupDelayDeletes(oldTrack)
示例14: clearToonTrack
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def clearToonTrack(self, avId):
oldTrack = self._DistributedPicnicBasket__toonTracks.get(avId)
if oldTrack:
oldTrack.pause()
DelayDelete.cleanupDelayDeletes(oldTrack)
del self._DistributedPicnicBasket__toonTracks[avId]
示例15: _deleteTrack
# 需要导入模块: from toontown.distributed import DelayDelete [as 别名]
# 或者: from toontown.distributed.DelayDelete import cleanupDelayDeletes [as 别名]
def _deleteTrack(self):
if self.track:
DelayDelete.cleanupDelayDeletes(self.track)
self.track = None