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


Python DistributedMinigame.setGameStart方法代码示例

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


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

示例1: setGameStart

# 需要导入模块: from toontown.minigame.DistributedMinigame import DistributedMinigame [as 别名]
# 或者: from toontown.minigame.DistributedMinigame.DistributedMinigame import setGameStart [as 别名]
 def setGameStart(self, timestamp):
     if not self.hasLocalToon:
         return
     self.notify.debug('setGameStart')
     DistributedMinigame.setGameStart(self, timestamp)
     if not config.GetBool('cog-thief-endless', 0):
         self.timer.show()
         self.timer.countdown(CTGG.GameTime, self.__gameTimerExpired)
     self.clockStopTime = None
     self.rewardPanel.reparentTo(base.a2dTopRight)
     self.scoreMult = MinigameGlobals.getScoreMult(self.cr.playGame.hood.id)
     self.__startRewardCountdown()
     self.gameFSM.request('play')
     return
开发者ID:Toonerz,项目名称:Toontown-World-Online-Leaked-Source,代码行数:16,代码来源:DistributedCogThiefGame.py

示例2: setGameStart

# 需要导入模块: from toontown.minigame.DistributedMinigame import DistributedMinigame [as 别名]
# 或者: from toontown.minigame.DistributedMinigame.DistributedMinigame import setGameStart [as 别名]
 def setGameStart(self, timestamp):
     if not self.hasLocalToon:
         return
     self.notify.debug("setGameStart")
     DistributedMinigame.setGameStart(self, timestamp)
     if not base.config.GetBool("cog-thief-endless", 0):
         self.timer.show()
         self.timer.countdown(CTGG.GameTime, self.__gameTimerExpired)
     self.clockStopTime = None
     self.rewardPanel.reparentTo(aspect2d)
     self.scoreMult = MinigameGlobals.getScoreMult(self.cr.playGame.hood.id)
     self.__startRewardCountdown()
     if self.introTrack.isPlaying():
         self.introTrack.finish()
     self.gameFSM.request("play")
     return
开发者ID:lolman8776,项目名称:ToontownInfinite,代码行数:18,代码来源:DistributedCogThiefGame.py


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