Esempio n. 1
0
 def _unpackVehicleDict(self, packedOps):
     nextOps = UnitBase._unpackVehicleDict(self, packedOps)
     try:
         (playerID,) = struct.unpack_from(PLAYER_ID_CHR, packedOps, offset=VEH_LEN_SIZE)
         self.onUnitPlayerVehDictChanged(playerID)
     except struct.error as e:
         LOG_ERROR(e)
     return nextOps
Esempio n. 2
0
    def _unpackVehicleDict(self, packedOps):
        nextOps = UnitBase._unpackVehicleDict(self, packedOps)
        try:
            accountDBID, = struct.unpack_from(PLAYER_ID_CHR, packedOps, offset=VEH_LEN_SIZE)
            self.onUnitPlayerVehDictChanged(accountDBID)
        except struct.error as e:
            LOG_ERROR(e)

        return nextOps