def __init__(self,
              totalDamaged=0,
              avatarKills=0,
              avatarDamaged=0,
              avatarDamageDealt=0,
              fairplayViolations=None,
              wasInBattle=True,
              accRank=None,
              prevAccRank=None,
              badges=(),
              ext=None,
              **kwargs):
     super(AvatarInfo, self).__init__(wasInBattle=wasInBattle)
     self.__totalDamaged = totalDamaged
     self.__avatarKills = avatarKills
     self.__avatarDamaged = avatarDamaged
     self.__avatarDamageDealt = avatarDamageDealt
     self.__fairplayViolations = shared.FairplayViolationsInfo(
         *(fairplayViolations or ()))
     self.__accRank = accRank
     self.__prevAccRank = prevAccRank
     if badges:
         self.__badge, self.__suffixBadge = getSelectedByLayout(badges[0])
         self.__badgesInfo = badges[1]
     else:
         self.__badge, self.__suffixBadge, self.__badgesInfo = (0, 0, None)
     self.__extInfo = ext
     return None
예제 #2
0
 def __init__(self, accountDBID = 0, clanDBID = 0, team = 0, isPrematureLeave = False, fairplayViolations = None, squadBonusInfo = None, winnerIfDraw = 0, eligibleForCrystalRewards = False, **kwargs):
     super(_PersonalAvatarInfo, self).__init__()
     self.__accountDBID = accountDBID
     self.__clanDBID = clanDBID
     self.__team = team
     self.__isPrematureLeave = isPrematureLeave
     self.__eligibleForCrystalRewards = eligibleForCrystalRewards
     self.__fairplayViolations = shared.FairplayViolationsInfo(*(fairplayViolations or ()))
     self.__squadBonusInfo = _SquadBonusInfo(**(squadBonusInfo or {}))
     self.__winnerIfDraw = winnerIfDraw
예제 #3
0
 def __init__(self, totalDamaged = 0, avatarKills = 0, avatarDamaged = 0, avatarDamageDealt = 0, fairplayViolations = None, wasInBattle = True, accRank = None, prevAccRank = None, rankedBadge = 0, **kwargs):
     super(AvatarInfo, self).__init__(wasInBattle=wasInBattle)
     self.__totalDamaged = totalDamaged
     self.__avatarKills = avatarKills
     self.__avatarDamaged = avatarDamaged
     self.__avatarDamageDealt = avatarDamageDealt
     self.__fairplayViolations = shared.FairplayViolationsInfo(*(fairplayViolations or ()))
     self.__accRank = accRank
     self.__prevAccRank = prevAccRank
     self.__badge = rankedBadge