def destroyEntity(self, controller, entityData, done): self.increaseSeq() entityId = IdCreator.bytes2id(entityData.id) entity = EntityManager.getEntity(entityId) if entity != None: try: entity.destroy() except Exception: self.handleLastTraceback('GateClient.destroyEntity: %s(%s) failed' % (entity.__class__.__name__, entityId)) return self.logger.info('GateClient.destroyEntity: %s(%s) success', entity.__class__.__name__, entityId)