Пример #1
0
 def changeTeam(self, accID, slot):
     roster = int(slot)
     settings = self.prbFunctional.getSettings()
     if not slot:
         roster = settings[PREBATTLE_SETTING_NAME.DEFAULT_ROSTER]
         if not roster & PREBATTLE_ROSTER.UNASSIGNED:
             roster |= PREBATTLE_ROSTER.UNASSIGNED
     result = yield self.prbDispatcher.sendPrbRequest(context.AssignPrbCtx(accID, roster, waitingID='prebattle/assign'))
     if not result:
         self.__showActionErrorMessage()
Пример #2
0
 def requestToUnassign(self, pID):
     yield self.prbDispatcher.sendPrbRequest(
         context.AssignPrbCtx(pID, PREBATTLE_ROSTER.UNASSIGNED_IN_TEAM1,
                              'prebattle/assign'))
Пример #3
0
 def requestToUnassignMember(self, pID):
     yield self.prbDispatcher.sendPrbRequest(
         context.AssignPrbCtx(
             pID,
             self._getPlayerTeam() | PREBATTLE_ROSTER.UNASSIGNED,
             'prebattle/assign'))