示例#1
0
 def doAction(self, action=None):
     if not self.isInQueue():
         self.queue(self._makeQueueCtxByAction(action))
     else:
         self.dequeue(DequeueCtx(waitingID='prebattle/leave'))
     return True
示例#2
0
 def _doEffect(self, dispatcher):
     self.__stillRunning = True
     self.__result = yield dispatcher.sendPrbRequest(DequeueCtx())
     self.__stillRunning = False