#!/usr/bin/python # -*- coding: GBK -*- #------------------------------------------------------------------------------- # ÍⲿÏûÏ¢´¦Àí£¬ÈçGMÃüÁ¿ç·þ£¬·ÇÍæ¼Ò·â°ü #------------------------------------------------------------------------------- # from Common import (mylog) from Protocol import MMORPGPack from DBCommon import (error, ) from Common import CommFunc import PyGameData import GameWorld def RecvPackToMapDB(packBuff): pack = MMORPGPack.MMORPGPacket() pack.readData(packBuff) if pack is None: msg = error.formatMsg('error', error.ERROR_NO_46, 'pack is None') mylog.error(msg) return False if pack.getLength() < 1: msg = error.formatMsg('error', error.ERROR_NO_47, 'pack.getLength() < 1 pack head = %s'%pack.getPackHead().outputString()) mylog.error(msg) return False #GameWorld.Log("RecvPackToMapDB packlen %s"%len(packBuff)) PyGameData.g_usrCtrlDB.requestLogicProcess(pack)