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


Python DistributedPartyActivity.unload方法代码示例

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


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

示例1: unload

# 需要导入模块: from toontown.parties.DistributedPartyActivity import DistributedPartyActivity [as 别名]
# 或者: from toontown.parties.DistributedPartyActivity.DistributedPartyActivity import unload [as 别名]
    def unload(self):
        DistributedPartyCatchActivity.notify.debug('unload')
        self.finishAllDropIntervals()
        self.destroyOrthoWalk()
        DistributedPartyActivity.unload(self)
        self.stopDropTask()
        del self.activityFSM
        del self.__textGen
        for avId in self.toonSDs.keys():
            if self.toonSDs.has_key(avId):
                toonSD = self.toonSDs[avId]
                toonSD.unload()

        del self.toonSDs
        self.treesAndFence.removeNode()
        del self.treesAndFence
        self.dropShadow.removeNode()
        del self.dropShadow
        base.cr.parentMgr.unregisterParent(self._avatarNodePathParentToken)
        for model in self.dropObjModels.values():
            model.removeNode()

        del self.dropObjModels
        del self.sndGoodCatch
        del self.sndOof
        del self.sndAnvilLand
        del self.sndPerfect
开发者ID:frogtongue,项目名称:tonguefrog,代码行数:29,代码来源:DistributedPartyCatchActivity.py

示例2: unload

# 需要导入模块: from toontown.parties.DistributedPartyActivity import DistributedPartyActivity [as 别名]
# 或者: from toontown.parties.DistributedPartyActivity.DistributedPartyActivity import unload [as 别名]
 def unload(self):
     self.notify.debug('unload')
     DistributedPartyActivity.unload(self)
     if self.shadowNode is not None:
         self.shadowNode.removeNode()
         del self.shadowNode
     if self.splash is not None:
         self.splash.destroy()
         del self.splash
     if self.dustCloud is not None:
         self.dustCloud.destroy()
         del self.dustCloud
     del self.sndHitHouse
     del self.sndHitGround
     del self.sndHitWater
     del self.sndBounce1
     del self.sndBounce2
     del self.sndBounce3
     if self.localFlyingToon:
         self.__resetToon(self.localFlyingToon)
         self.localFlyingToon.loop('neutral')
         self.localFlyingToon.setPlayRate(1.0, 'run')
         self.localFlyingToon = None
     self.ignoreAll()
     return
开发者ID:LittleNed,项目名称:Toontown-Online-No-TTR,代码行数:27,代码来源:DistributedPartyCannonActivity.py

示例3: unload

# 需要导入模块: from toontown.parties.DistributedPartyActivity import DistributedPartyActivity [as 别名]
# 或者: from toontown.parties.DistributedPartyActivity.DistributedPartyActivity import unload [as 别名]
 def unload(self):
     DistributedPartyTrampolineActivity.notify.debug('unload')
     if self.hopOnAnim and self.hopOnAnim.isPlaying():
         self.hopOnAnim.finish()
     if self.hopOffAnim and self.hopOffAnim.isPlaying():
         self.hopOffAnim.finish()
     if self.beginRoundInterval and self.beginRoundInterval.isPlaying():
         self.beginRoundInterval.finish()
     if self.flashTextInterval and self.flashTextInterval.isPlaying():
         self.flashTextInterval.finish()
     if self.heightTextInterval and self.heightTextInterval.isPlaying():
         self.heightTextInterval.finish()
     self.timer.stop()
     DistributedPartyActivity.unload(self)
     taskMgr.remove(self.uniqueName('TrampolineActivity.updateTask'))
     taskMgr.remove(self.uniqueName('TrampolineActivity.remoteUpdateTask'))
     self.ignoreAll()
     del self.heightTextInterval
     del self.beginRoundInterval
     del self.hopOnAnim
     del self.hopOffAnim
     del self.flashTextInterval
     if hasattr(self, 'beanAnims'):
         self.cleanupJellyBeans()
     self.quitEarlyButton.destroy()
     del self.quitEarlyButton
     del self.gui
     del self.activityFSM
     del self.animFSM
     return
开发者ID:CalebSmith376,项目名称:src,代码行数:32,代码来源:DistributedPartyTrampolineActivity.py

示例4: unload

# 需要导入模块: from toontown.parties.DistributedPartyActivity import DistributedPartyActivity [as 别名]
# 或者: from toontown.parties.DistributedPartyActivity.DistributedPartyActivity import unload [as 别名]
    def unload(self):
        DistributedPartyActivity.unload(self)
        self.activityFSM.request('Disabled')
        if self.localToonDanceSequence is not None:
            self.localToonDanceSequence.finish()
        if self.localToonDancing:
            self.__localStopDancing()
        self.ignoreAll()
        if self.discoBallSequence is not None:
            self.discoBallSequence.finish()
        if self.danceFloorSequence is not None:
            self.danceFloorSequence.finish()
        del self.danceFloorSequence
        del self.discoBallSequence
        del self.localToonDanceSequence
        if self.danceFloor is not None:
            self.danceFloor.removeNode()
            self.danceFloor = None
        self.__destroyOrthoWalk()
        for toonId in self.dancingToonFSMs.keys():
            self.dancingToonFSMs[toonId].destroy()
            del self.dancingToonFSMs[toonId]

        del self.dancingToonFSMs
        del self.cameraParallel
        del self.currentCameraMode
        if self.keyCodes is not None:
            self.keyCodes.destroy()
            del self.keyCodes
        del self.activityFSM
        del self.gui
        del self.localPatternsMatched
        return
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leaked-Source,代码行数:35,代码来源:DistributedPartyDanceActivityBase.py

示例5: unload

# 需要导入模块: from toontown.parties.DistributedPartyActivity import DistributedPartyActivity [as 别名]
# 或者: from toontown.parties.DistributedPartyActivity.DistributedPartyActivity import unload [as 别名]
 def unload(self):
     DistributedPartyActivity.unload(self)
     self.gui.unload()
     if self.music is not None:
         self.music.stop()
     self.jukebox.stop()
     self.jukebox.delete()
     self.jukebox = None
     self.ignoreAll()
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leak,代码行数:11,代码来源:DistributedPartyJukeboxActivityBase.py

示例6: unload

# 需要导入模块: from toontown.parties.DistributedPartyActivity import DistributedPartyActivity [as 别名]
# 或者: from toontown.parties.DistributedPartyActivity.DistributedPartyActivity import unload [as 别名]
 def unload(self):
     DistributedPartyActivity.unload(self)
     del self.activityFSM
     self.teamActivityGui.unload()
     del self.teamActivityGui
     if hasattr(self, 'toonIds'):
         del self.toonIds
     del self.isLocalToonPlaying
     del self.localToonTeam
     del self.advantage
     del self.waitToStartTimestamp
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leak,代码行数:13,代码来源:DistributedPartyTeamActivity.py


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