hxp
2024-11-25 878fef04122d1feaa0f42c429f364659931bc379
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/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