Esempio n. 1
0
 def decode(self, pack):
     BossDamWrap = Bossdamwrap()
     BossDamWrap.decode(pack)
     self.playerInfo =  BossDamWrap
     self.bossUID = pack.popLong()
     self.bossHP = pack.popDouble()
     self.isWin = pack.popBoolean()
     pass
Esempio n. 2
0
 def decode(self, pack):
     self.bossLv = pack.popInt()
     self.bossHP = pack.popDouble()
     self.bossStarted = pack.popBoolean()
     BossDamWrap = Bossdamwrap()
     BossDamWrap.decode(pack)
     self.killer =  BossDamWrap
     for i in range(pack.popShort()):
         BossDamWrap = Bossdamwrap()
         BossDamWrap.decode(pack)
         self.topTen.append(BossDamWrap)
     self.boostLv = pack.popInt()
     self.lastBoostTime = pack.popLong()
     self.lastBattleTime = pack.popLong()
     self.goldBoostCount = pack.popInt()
     self.damage = pack.popDouble()
     self.rank = pack.popInt()
     self.attackCount = pack.popInt()
     pass