本文整理汇总了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
示例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