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
ùHÂhc@srddlZddlZddlZddlZddlZddlZddd„ƒYZddd„ƒYZdS(iÿÿÿÿNtPlayerViewCachecBsjeZd'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)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
SetFacePic/scCs
|jjS(N(Rt    ModelMark(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetModelMark0scCs||j_dS(N(RR-(R
t    modelMark((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt SetModelMark1scCs
|jjS(N(RtFamilyID(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetFamilyID2scCs||j_dS(N(RR1(R
tfamilyID((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt SetFamilyID3scCs
|jjS(N(Rt
FamilyName(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetFamilyName4scCs||j_dS(N(RR5(R
t
familyName((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt SetFamilyName5scCs
|jjS(N(RtFamilyEmblemID(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetFamilyEmblemID6scCs||j_dS(N(RR9(R
tfamilyEmblemID((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytSetFamilyEmblemID7scCs
|jjS(N(RtTitleID(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
GetTitleID8scCs||j_dS(N(RR=(R
ttitleID((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
SetTitleID9scCs
|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(RRCtChConfigtDef_PerPointValueRA(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetFightPowerTotal<scCs*|tj|j_|tj|j_dS(N(RERFRRARC(R
tfightPowerTotal((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytSetFightPowerTotal=scCs
|jjS(N(RtServerID(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetServerIDAscCs||j_dS(N(RRJ(R
tserverID((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt SetServerIDBscCs
|jjS(N(RtOffTime(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
GetOffTimeCscCs||j_dS(N(RRN(R
toffTime((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
SetOffTimeDscCs |jjƒS(N(R    tGetData(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetPlusDictEscCs|jj|ƒdS(N(R    tSetData(R
tvalue((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt SetPlusDictFscCs |jjƒS(N(R    tToString(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetPlusDataGscCs|jjƒ|jjƒS(N(R    RWRt    getBuffer(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt    GetBufferHs N(*t__name__t
__module__tNoneR RRRRRRRRRR R"R$R&R(R*R,R.R0R2R4R6R8R:R<R>R@RBRDRGRIRKRMRORQRSRVRXRZ(((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyRsN                                                                                                                                                     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 Ps
                cCsR|j}||jkrdSt|ƒ}|jj|ƒ||j|<t|_|S(s³õʼ»¯¹¦ÄÜÊý¾ÝʵÀý£¬´´½¨»ò¼ÓÔØÊý¾ÝʱͨÓ㬹¦ÄÜÒ»°ã²»µ÷ÓÃ
        @param dbData: ÊµÀý¶ÔÓ¦°ó¶¨µÄdbData
        @return: ³É¹¦·µ»ØÊµÀý¶ÔÏó£¬Ê§°Ü·µ»ØNone
        N(R R`RR_tappendRRb(R
R Rt    viewCache((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt__InitViewCacheInstanceWs          cCs"tjƒ}||_|j|ƒS(N(RRR t*_PlayerViewCacheMgr__InitViewCacheInstance(R
RR ((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytAddPlayerViewCachees     cCsBd}||jkr%|j|}n| r>tr>tƒ}n|S(N(R]R`RaR(R
RRe((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetPlayerViewCachejs   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(R]tSortttupleRcR_RRKt
isinstancetinttlisttlenRdt    GameWorldtDebugLog(R
t serverIDListtkeyt playerIDListReRRLtidInfo((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetPlayerIDListByServerIDInfous" 
    6 cCsz|jj|dƒ}||jkr7|jj|ƒnx3|jjƒD]"}||krG|j|ƒqGqGWi|_dS(N(R`tpopR]R_tremoveRctvalues(R
RReRt((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytDelPlayerViewCache‰s     cCs(g|_i|_t|_i|_dS(N(R_R`RaRbRc(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt DelAllCache“s
                cCs t|jƒS(N(RoR_(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetCountšscCs*|j|}| r&tr&tƒ}n|S(N(R_RaR(R
tindexRe((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytAt›s   cCs?|js dSt|_|jjdd„dtƒi|_dS(NRscSs|jƒ|jƒfS(N(RGR(tv((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt<lambda>¦streverse(RbRaR_tsortRRc(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyRj¡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(
R_Rt ShareDefinetRealPlayerIDStartRZRptLogRotCommFunct
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    ReadDWORDRpR†txrangeRRtreadDataRgRj(R
tdatastpostdataslenR‹t_R ((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytLoadPyGameData»s 
(R[R\R RgRhRiRvRzR{R|R~RjRŒR”(((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyR^Ns                         
                
    (((RRRpR„R‡RERR^(((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt<module>s      5