コード例 #1
0
ファイル: Place.py プロジェクト: n8x0b7T/Toontown-RTG
 def enterQuietZone(self, requestStatus):
     self.quietZoneDoneEvent = uniqueName('quietZoneDone')
     self.acceptOnce(self.quietZoneDoneEvent, self.handleQuietZoneDone)
     self.quietZoneStateData = QuietZoneState.QuietZoneState(
         self.quietZoneDoneEvent)
     self.quietZoneStateData.load()
     self.quietZoneStateData.enter(requestStatus)
コード例 #2
0
 def enterQuietZone(self, requestStatus):
     self.quietZoneDoneEvent = 'quietZoneDone'
     self.acceptOnce(self.quietZoneDoneEvent, self.handleQuietZoneDone)
     self.acceptOnce('enterWaitForSetZoneResponse', self.handleWaitForSetZoneResponse)
     self.quietZoneStateData = QuietZoneState.QuietZoneState(self.quietZoneDoneEvent)
     self.quietZoneStateData.load()
     self.quietZoneStateData.enter(requestStatus)
コード例 #3
0
 def enterQuietZone(self, requestStatus):
     assert (self.notify.debug("enterQuietZone(requestStatus = %s)" %
                               (requestStatus)))
     self.quietZoneDoneEvent = "quietZoneDone"
     self.acceptOnce(self.quietZoneDoneEvent, self.handleQuietZoneDone)
     self.acceptOnce("enterWaitForSetZoneResponse",
                     self.handleWaitForSetZoneResponse)
     self.quietZoneStateData = QuietZoneState.QuietZoneState(
         self.quietZoneDoneEvent)
     self.quietZoneStateData.load()
     self.quietZoneStateData.enter(requestStatus)
コード例 #4
0
ファイル: Hood.py プロジェクト: DarthNihilus1/src
 def enterQuietZone(self, requestStatus):
     teleportDebug(requestStatus, 'Hood.enterQuietZone: status=%s' % requestStatus)
     self._quietZoneDoneEvent = uniqueName('quietZoneDone')
     self.acceptOnce(self._quietZoneDoneEvent, self.handleQuietZoneDone)
     self.quietZoneStateData = QuietZoneState.QuietZoneState(self._quietZoneDoneEvent)
     self._enterWaitForSetZoneResponseMsg = self.quietZoneStateData.getEnterWaitForSetZoneResponseMsg()
     self.acceptOnce(self._enterWaitForSetZoneResponseMsg, self.handleWaitForSetZoneResponse)
     self._quietZoneLeftEvent = self.quietZoneStateData.getQuietZoneLeftEvent()
     if base.placeBeforeObjects:
         self.acceptOnce(self._quietZoneLeftEvent, self.handleLeftQuietZone)
     self.quietZoneStateData.load()
     self.quietZoneStateData.enter(requestStatus)