예제 #1
0
 def check(self, rosters, team, teamLimits):
     rosterKey = None
     if team is 1:
         rosterKey = PREBATTLE_ROSTER.ASSIGNED_IN_TEAM1
     elif team is 2:
         rosterKey = PREBATTLE_ROSTER.ASSIGNED_IN_TEAM2
     if rosterKey in rosters:
         accountsInfo = rosters[rosterKey]
     else:
         accountsInfo = {}
     return isTeamValid(accountsInfo, teamLimits)
예제 #2
0
 def check(self, rosters, team, teamLimits):
     rosterKey = None
     if team is 1:
         rosterKey = PREBATTLE_ROSTER.ASSIGNED_IN_TEAM1
     elif team is 2:
         rosterKey = PREBATTLE_ROSTER.ASSIGNED_IN_TEAM2
     if rosterKey in rosters:
         accountsInfo = rosters[rosterKey]
     else:
         accountsInfo = {}
     return isTeamValid(accountsInfo, teamLimits)
예제 #3
0
 def check(self, rosters, team, teamLimits):
     return isTeamValid(self._getAccountsInfo(rosters, team), teamLimits)
예제 #4
0
파일: limits.py 프로젝트: kblw/wot_client
 def check(self, rosters, team, teamLimits):
     return isTeamValid(self._getAccountsInfo(rosters, team), teamLimits)