#!/usr/bin/python  
 | 
# -*- coding: GBK -*-  
 | 
#  
 | 
#  
 | 
##@package ShowUniversalRec.py  
 | 
#  
 | 
# @todo:²é¿´¼Ç¼ÐÅÏ¢  
 | 
#  
 | 
# @author wdb  
 | 
# @date 2013-01-29  
 | 
# @version 1.0  
 | 
# @note:  
 | 
#  
 | 
#------------------------------------------------------------------------------   
 | 
"""Version = 2013-01-29 15:00"""  
 | 
#------------------------------------------------------------------------------   
 | 
import GameWorld  
 | 
import ShareDefine  
 | 
#---------------------------------------------------------------------  
 | 
#È«¾Ö±äÁ¿  
 | 
#---------------------------------------------------------------------  
 | 
  
 | 
#---------------------------------------------------------------------  
 | 
#Â߼ʵÏÖ(ÕâÀïcurPlayer = None)  
 | 
## Ö´ÐÐÂß¼  
 | 
#  @param curPlayer µ±Ç°Íæ¼Ò  
 | 
#  @param gmList [cmdIndex gmAccID type find]  
 | 
#  @return None  
 | 
#  @remarks º¯ÊýÏêϸ˵Ã÷.  
 | 
def OnExec(curPlayer, gmList):  
 | 
      
 | 
      
 | 
    if len(gmList) < 1:  
 | 
        return      
 | 
      
 | 
    recType = gmList[0]  
 | 
    showCnt = 20 if len(gmList) < 2 else gmList[1]  
 | 
          
 | 
    # ¿ç·þÅÅλ¼Ç¼ÐÅÏ¢±ê  
 | 
    universalRecMgr = GameWorld.GetUniversalRecMgr()    
 | 
    recTypeListData = universalRecMgr.GetTypeList(recType)  
 | 
    GameWorld.DebugAnswer(curPlayer, "count:%s"%recTypeListData.Count())  
 | 
      
 | 
    for index in range(recTypeListData.Count()):  
 | 
        if index >= showCnt:  
 | 
            return  
 | 
          
 | 
        recObj = recTypeListData.At(index)  
 | 
          
 | 
        showValue = (recObj.GetValue1(), recObj.GetValue2(), recObj.GetValue3(), recObj.GetValue4(),  
 | 
                      recObj.GetStrValue1(), recObj.GetStrValue2(), recObj.GetStrValue3())  
 | 
        GameWorld.DebugAnswer(curPlayer, "%s, %s"%(index, str(showValue)))  
 | 
      
 | 
    return  
 | 
      
 | 
     
 |