hwj35
2 天以前 205e9e17cd4b4160016e14e6b622ac3ce1c30e29
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
4†…ic@s~ddlZddlZddlZddlZddlZddlZddlZddd„ƒYZddd„ƒYZdS(iÿÿÿÿNtPlayerViewCachecBsŽeZd+d„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d„Z d    „Z d
„Z d „Zd „Zd „Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z d„Z!d„Z"d „Z#d!„Z$d"„Z%d#„Z&d$„Z'd%„Z(d&„Z)d'„Z*d(„Z+d)„Z,d*„Z-RS(,cCs=|stjƒn||_tj|jddtƒ|_dS(NtPlusDatat PlusDataSize(tDBStructttagDBPlayerViewCachet_PlayerViewCache__dbDatatDBCommt UserDataDicttTruet_PlayerViewCache__plusDict(tselftdbData((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt__init__scCs
|jjS(N(RtPlayerID(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetPlayerID!scCs||j_dS(N(RR (R
tplayerID((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt SetPlayerID"scCs
|jjS(N(RtAccID(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetAccID#scCs||j_dS(N(RR(R
taccID((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytSetAccID$scCs
|jjS(N(Rt
PlayerName(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetPlayerName%scCs||j_dS(N(RR(R
t
playerName((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt SetPlayerName&scCs
|jjS(N(RtLV(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetLV'scCs||j_dS(N(RR(R
tlv((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytSetLV(scCs
|jjS(N(RtJob(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetJob)scCs||j_dS(N(RR(R
tjob((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytSetJob*scCs
|jjS(N(RtRealmLV(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
GetRealmLV+scCs||j_dS(N(RR!(R
trealmLV((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
SetRealmLV,scCs
|jjS(N(RtFace(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetFace-scCs||j_dS(N(RR%(R
tface((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytSetFace.scCs
|jjS(N(RtFacePic(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
GetFacePic/scCs||j_dS(N(RR)(R
tfacePic((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
SetFacePic0scCs
|jjS(N(Rt    ModelMark(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetModelMark1scCs||j_dS(N(RR-(R
t    modelMark((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt SetModelMark2scCs
|jjS(N(RtEquipShowSwitch(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetEquipShowSwitch3scCs||j_dS(N(RR1(R
tequipShowSwitch((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytSetEquipShowSwitch4scCs
|jjS(N(RtFamilyID(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetFamilyID5scCs||j_dS(N(RR5(R
tfamilyID((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt SetFamilyID6scCs
|jjS(N(Rt
FamilyName(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetFamilyName7scCs||j_dS(N(RR9(R
t
familyName((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt SetFamilyName8scCs
|jjS(N(RtFamilyEmblemID(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetFamilyEmblemID9scCs||j_dS(N(RR=(R
tfamilyEmblemID((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytSetFamilyEmblemID:scCs
|jjS(N(RtFamilyEmblemWord(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetFamilyEmblemWord;scCs||j_dS(N(RRA(R
tfamilyEmblemWord((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytSetFamilyEmblemWord<scCs
|jjS(N(RtTitleID(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
GetTitleID=scCs||j_dS(N(RRE(R
ttitleID((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
SetTitleID>scCs
|jjS(N(Rt
FightPower(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetFightPower?scCs
|jjS(N(Rt FightPowerEx(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetFightPowerEx@scCs|jjtj|jjS(N(RRKtChConfigtDef_PerPointValueRI(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetFightPowerTotalAscCs*|tj|j_|tj|j_dS(N(RMRNRRIRK(R
tfightPowerTotal((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytSetFightPowerTotalBscCs
|jjS(N(RtServerID(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetServerIDFscCs||j_dS(N(RRR(R
tserverID((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt SetServerIDGscCs
|jjS(N(RtOffTime(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
GetOffTimeHscCs||j_dS(N(RRV(R
toffTime((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
SetOffTimeIscCs |jjƒS(N(R    tGetData(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetPlusDictJscCs|jj|ƒdS(N(R    tSetData(R
tvalue((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt SetPlusDictKscCs |jjƒS(N(R    tToString(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetPlusDataLscCs|jjƒ|jjƒS(N(R    R_Rt    getBuffer(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt    GetBufferMs N(.t__name__t
__module__tNoneR RRRRRRRRRR R"R$R&R(R*R,R.R0R2R4R6R8R:R<R>R@RBRDRFRHRJRLRORQRSRURWRYR[R^R`Rb(((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyRsV                                                                                                                                                                     tPlayerViewCacheMgrcBsteZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z RS( cCs(g|_i|_t|_i|_dS(N(t"_PlayerViewCacheMgr__viewCacheListt"_PlayerViewCacheMgr__viewCacheDicttFalset_PlayerViewCacheMgr__needSortt._PlayerViewCacheMgr__serverIDRangePlayerIDDict(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyR Us
                cCsz|j}||jkrdSt|ƒ}|jƒsP|jttjƒƒƒn|jj|ƒ||j|<t    |_
|S(s³õʼ»¯¹¦ÄÜÊý¾ÝʵÀý£¬´´½¨»ò¼ÓÔØÊý¾ÝʱͨÓ㬹¦ÄÜÒ»°ã²»µ÷ÓÃ
        @param dbData: ÊµÀý¶ÔÓ¦°ó¶¨µÄdbData
        @return: ³É¹¦·µ»ØÊµÀý¶ÔÏó£¬Ê§°Ü·µ»ØNone
        N( R RhRRWRYtintttimeRgtappendRRj(R
R Rt    viewCache((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt__InitViewCacheInstance\s           cCs"tjƒ}||_|j|ƒS(N(RRR t*_PlayerViewCacheMgr__InitViewCacheInstance(R
RR ((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytAddPlayerViewCachels     cCsBd}||jkr%|j|}n| r>tr>tƒ}n|S(N(ReRhRiR(R
RRo((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetPlayerViewCacheqs   c Cs2|dkrgS|jƒt|ƒ}||jkr'g}x¹|jD]®}|jƒ}|jƒ}x|D]…}t|tƒr‹||ksßt|tƒs©t|t    ƒrjt
|ƒdkrj|d|koÚ|dknrj|j |ƒqjqjWqEWt j d|t
|ƒ|fƒ||j|<n|j|S(Niiis*ÖØÐ¼ÓÔØÇø·þÍæ¼Ò²é¿´»º´æIDÁбí: %s, %s, %s(RetSortttupleRkRgRRSt
isinstanceRltlisttlenRnt    GameWorldtDebugLog(R
t serverIDListtkeyt playerIDListRoRRTtidInfo((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetPlayerIDListByServerIDInfo|s" 
    6 cCsz|jj|dƒ}||jkr7|jj|ƒnx3|jjƒD]"}||krG|j|ƒqGqGWi|_dS(N(RhtpopReRgtremoveRktvalues(R
RRoR}((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytDelPlayerViewCaches     cCs(g|_i|_t|_i|_dS(N(RgRhRiRjRk(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt DelAllCachešs
                cCs t|jƒS(N(RxRg(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetCount¡scCs*|j|}| r&tr&tƒ}n|S(N(RgRiR(R
tindexRo((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytAt¢s   cCs?|js dSt|_|jjdd„dtƒi|_dS(NR|cSs|jƒ|jƒfS(N(ROR(tv((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt<lambda>­streverse(RjRiRgtsortRRk(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyRt¨s             cCsŒd}d}d}xF|jD];}|jƒtjkr=qn|d7}||jƒ7}qWtjd|t|ƒfƒtj    ||ƒ|S(Ntiis'Save DBPlayerViewCache count :%s len=%s(
RgRt ShareDefinetRealPlayerIDStartRbRytLogRxtCommFunct
WriteDWORD(R
tsavaDatatcntDatatcntR ((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetSaveData²s
cCs€tj||ƒ\}}tjd|ƒxFt|ƒD]8}tjƒ}||j|||ƒ7}|j|ƒq6W|j    ƒ|S(Ns Load DBPlayerViewCache count :%s(
Rt    ReadDWORDRyRtxrangeRRtreadDataRqRt(R
tdatastpostdataslenR”t_R ((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytLoadPyGameDataÂs 
(RcRdR RqRrRsRRƒR„R…R‡RtR•R(((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyRfSs                         
                
    (((    RRRyRRRMRmRRf(((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt<module>s       9