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
%¥èhc@srddlZddlZddlZddlZddlZddlZddd„ƒ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+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(RtFamilyEmblemWord(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetFamilyEmblemWord8scCs||j_dS(N(RR=(R
tfamilyEmblemWord((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytSetFamilyEmblemWord9scCs
|jjS(N(RtTitleID(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
GetTitleID:scCs||j_dS(N(RRA(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(RRGtChConfigtDef_PerPointValueRE(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetFightPowerTotal>scCs*|tj|j_|tj|j_dS(N(RIRJRRERG(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 GetServerIDCscCs||j_dS(N(RRN(R
tserverID((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt SetServerIDDscCs
|jjS(N(RtOffTime(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
GetOffTimeEscCs||j_dS(N(RRR(R
toffTime((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt
SetOffTimeFscCs |jjƒS(N(R    tGetData(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetPlusDictGscCs|jj|ƒdS(N(R    tSetData(R
tvalue((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt SetPlusDictHscCs |jjƒS(N(R    tToString(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt GetPlusDataIscCs|jjƒ|jjƒS(N(R    R[Rt    getBuffer(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt    GetBufferJs N(,t__name__t
__module__tNoneR RRRRRRRRRR R"R$R&R(R*R,R.R0R2R4R6R8R:R<R>R@RBRDRFRHRKRMRORQRSRURWRZR\R^(((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyRsR                                                                                                                                                             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 Rs
                cCsR|j}||jkrdSt|ƒ}|jj|ƒ||j|<t|_|S(s³õʼ»¯¹¦ÄÜÊý¾ÝʵÀý£¬´´½¨»ò¼ÓÔØÊý¾ÝʱͨÓ㬹¦ÄÜÒ»°ã²»µ÷ÓÃ
        @param dbData: ÊµÀý¶ÔÓ¦°ó¶¨µÄdbData
        @return: ³É¹¦·µ»ØÊµÀý¶ÔÏó£¬Ê§°Ü·µ»ØNone
        N(R RdRRctappendRRf(R
R Rt    viewCache((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt__InitViewCacheInstanceYs          cCs"tjƒ}||_|j|ƒS(N(RRR t*_PlayerViewCacheMgr__InitViewCacheInstance(R
RR ((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytAddPlayerViewCachegs     cCsBd}||jkr%|j|}n| r>tr>tƒ}n|S(N(RaRdReR(R
RRi((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetPlayerViewCachels   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(RatSortttupleRgRcRROt
isinstancetinttlisttlenRht    GameWorldtDebugLog(R
t serverIDListtkeyt playerIDListRiRRPtidInfo((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetPlayerIDListByServerIDInfows" 
    6 cCsz|jj|dƒ}||jkr7|jj|ƒnx3|jjƒD]"}||krG|j|ƒqGqGWi|_dS(N(RdtpopRaRctremoveRgtvalues(R
RRiRx((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytDelPlayerViewCache‹s     cCs(g|_i|_t|_i|_dS(N(RcRdReRfRg(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt DelAllCache•s
                cCs t|jƒS(N(RsRc(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytGetCountœscCs*|j|}| r&tr&tƒ}n|S(N(RcReR(R
tindexRi((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytAts   cCs?|js dSt|_|jjdd„dtƒi|_dS(NRwcSs|jƒ|jƒfS(N(RKR(tv((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt<lambda>¨streverse(RfReRctsortRRg(R
((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyRn£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(
RcRt ShareDefinetRealPlayerIDStartR^RttLogRstCommFunct
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    ReadDWORDRtRŠtxrangeRRtreadDataRkRn(R
tdatastpostdataslenRt_R ((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pytLoadPyGameData½s 
(R_R`R RkRlRmRzR~RR€R‚RnRR˜(((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyRbPs                         
                
    (((RRRtRˆR‹RIRRb(((swD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPlayerViewCache.pyt<module>s      7