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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
ÕE®jc@s¢ddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZedƒZ\ZZd„Zdfd„ƒYZdfd„ƒYZdfd    „ƒYZd
fd „ƒYZd fd „ƒYZd„Zd„Zddd„Zd„Zd„Zd„Zed„Z d„Z!d„Z"d„Z#d„Z$dS(iÿÿÿÿNicCsdS(NiÈ((((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetEmperorRecMax(st PalaceBlesscBsweZd d„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d„Z d    „Z d
„Z d „ZRS( cCs@|stjƒn||_tj|jdddtƒ|_dS(NtUserDatat UserDataLenttoJson(tDBStructttagDBPalaceBlesst_PalaceBless__dbDatatDBCommt UserDataDicttFalset_PalaceBless__dataDict(tselftdbData((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt__init__-s!cCs
|jjS(N(RtPalaceID(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetPalaceID2scCs
|jjS(N(RtPlayerID(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetPlayerID3scCs
|jjS(N(Rt    BlessTime(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetBlessTime4scCs
|jjS(N(Rt    WordIndex(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetWordIndex5scCs||j_dS(N(RR(R t    wordIndex((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt SetWordIndex6scCst|jjƒS(N(tintRtServerID(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetServerID7scCs||j_dS(N(RR(R tserverID((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt SetServerID8scCs |jjƒS(N(R tGetData(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetUserDict9scCs |jjƒS(N(R tToString(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetUserData:scCs|jj|ƒdS(N(R tSetData(R tvalue((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt SetUserData;scCs|jjƒ|jjƒS(N(R R Rt    getBuffer(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt    GetBuffer<s N(t__name__t
__module__tNoneRRRRRRRRRR!R$R&(((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR*s                                         t
EmperorReccBs|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(*cCsI|stjƒn||_tj|jdddtƒ|_t|_dS(NRRR(    RttagDBPalaceEmperort_EmperorRec__dbDataRR    tTruet_EmperorRec__dataDictR
t_EmperorRec__isDel(R R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRCs!    cCs
|jjS(N(R,R(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRIscCs
|jjS(N(R,R(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRJscCs
|jjS(N(R,tAddTime(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt
GetAddTimeKscCs||j_dS(N(R,R0(R taddTime((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt
SetAddTimeLscCs
|jjS(N(R,tDataType(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetDataTypeMscCs||j_dS(N(R,R4(R tdataType((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt SetDataTypeNscCs
|jjS(N(R,t
PlayerName(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetPlayerNameOscCs||j_dS(N(R,R8(R t
playerName((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt SetPlayerNamePscCs
|jjS(N(R,tLV(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetLVQscCs||j_dS(N(R,R<(R tlv((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytSetLVRscCs
|jjS(N(R,tJob(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetJobSscCs||j_dS(N(R,R@(R tjob((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytSetJobTscCs
|jjS(N(R,tRealmLV(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt
GetRealmLVUscCs||j_dS(N(R,RD(R trealmLV((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt
SetRealmLVVscCs
|jjS(N(R,tFace(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetFaceWscCs||j_dS(N(R,RH(R tface((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytSetFaceXscCs
|jjS(N(R,tFacePic(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt
GetFacePicYscCs||j_dS(N(R,RL(R tfacePic((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt
SetFacePicZscCs
|jjS(N(R,t    ModelMark(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetModelMark[scCs||j_dS(N(R,RP(R t    modelMark((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt SetModelMark\scCs
|jjS(N(R,tEquipShowSwitch(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetEquipShowSwitch]scCs||j_dS(N(R,RT(R tequipShowSwitch((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytSetEquipShowSwitch^scCs
|jjS(N(R,tTitleID(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt
GetTitleID_scCs||j_dS(N(R,RX(R ttitleID((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt
SetTitleID`scCs
|jjS(N(R,t
FightPower(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetFightPowerascCs
|jjS(N(R,t FightPowerEx(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetFightPowerExbscCs|jjtj|jjS(N(R,R^tChConfigtDef_PerPointValueR\(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetFightPowerTotalcscCs*|tj|j_|tj|j_dS(N(R`RaR,R\R^(R tfightPowerTotal((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytSetFightPowerTotaldscCst|jjƒS(N(RR,R(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRhscCs||j_dS(N(R,R(R R((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRiscCs
|jjS(N(R,tCmpValue(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetCmpValuejscCs||j_dS(N(R,Re(R tcmpValue((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt SetCmpValuekscCs
|jjS(N(R,t    CmpValue2(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetCmpValue2lscCs||j_dS(N(R,Ri(R t    cmpValue2((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt SetCmpValue2mscCs |jjƒS(N(R.R(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRnscCs |jjƒS(N(R.R (R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR!oscCs|jj|ƒdS(N(R.R"(R R#((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR$pscCs|jjƒ|jjƒS(N(R.R R,R%(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR&qs cCs|jS(N(R/(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetIsDeluscCs ||_dS(N(R/(R tisDel((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytSetIsDelvsN(,R'R(R)RRRR1R3R5R7R9R;R=R?RARCRERGRIRKRMRORQRSRURWRYR[R]R_RbRdRRRfRhRjRlRR!R$R&RmRo(((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR*@sR                                                                                                                                                             t    PalaceObjcBs_eZd„Zd„Zd„Zed„Zd    d„Zd„Z    d„Z
d„Z d„Z RS(
cCs7||_tjƒj|ƒ|_||_i|_dS(N(t_PalaceObj__zoneIDt    DBDataMgrt GetPalaceMgrtGetZonePalaceMgrt_PalaceObj__zoneMgrt_PalaceObj__palaceIDt_PalaceObj__curEmperorDict(R tpalaceIDtzoneID((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR{s
            cCs|jS(N(Rv(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR‚scCs i|_dS(N(Rw(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt ClearEmperor„s    cCsu|jƒ}||jkr+g|j|<n|j|}|j|ƒ|r[|j|ƒn|jj|jƒƒdS(N(R5Rwtappendt SortEmperorRutAddZoneServerIDR(R t
emperorRectisSortR6t emperorList((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt AllotEmperorˆs   cCsÚtƒ}xÊ|jjƒD]¹\}}|dkrC||krCqn|tkrk|jdd„dtƒn|jdd„dtƒt|ƒ|kr||}|| |j|<x|D]}|jdƒq¸WqqWdS(NtkeycSs(|jƒ|jƒ|jƒ|jƒfS(N(RfRjRbR1(te((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt<lambda>šstreversecSs|jƒ|jƒfS(N(R1Rb(Rƒ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR„œsi(    RRwtitemsR)tEmperorDataType_SucctsortR-tlenRo(R R6t    maxRecCnttdTypeR€tdelListtemperor((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR|”s     
 cCsQ|j|ƒ}|dks-|t|ƒkr1dS|j|ƒ}|jdƒ|S(Nii(tGetEmperorListR‰tpopRo(R R6tindexR€R((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytDelEmperorByIndex¤s  cCs||jkrgS|j|S(N(Rw(R R6((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRެscCst|j|ƒƒS(N(R‰RŽ(R R6((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetEmperorCount°scCsZd}|j|ƒ}d|ko2t|ƒknrD||}ntrVtƒ}n|S(Ni(R)RŽR‰R
R*(R R6RRR€((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetEmperorAt±s"  N( R'R(RRRzR
RR)R|R‘RŽR’R“(((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRpxs                         t ZonePalaceMgrcBsAeZdd„Zd„Zd„Zd„Zd„Zd„ZRS(icCs||_i|_g|_dS(N(t_ZonePalaceMgr__zoneIDt_ZonePalaceMgr__palaceDictt _ZonePalaceMgr__zoneServerIDList(R Ry((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR¾s            cCs|jS(N(R•(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt    GetZoneIDÄscCs |jjƒS(N(R–tkeys(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetPalaceIDListÆscCsHd}||jkr%|j|}nt||jƒ}||j|<|S(N(R)R–RpR•(R Rxtpalace((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt    GetPalaceÈs  cCs&||jkr"|jj|ƒndS(N(R—R{(R R((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR}ÑscCs|jS(N(R—(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetZoneServerIDListÕs(R'R(RR˜RšRœR}R(((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR”ºs                      t    PalaceMgrcBseZdZd„Zd„Zd„Zd„Zd„Zd„Zd„Z    d„Z
d    „Z d
„Z d „Z d „Zeed „Zd„Zd„Zd„Zd„Zd„Zd„Zdd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z RS(sK ËùÓлʹ¬Êý¾Ý×ܹÜÀí£¬±¾·þ¡¢¿ç·þͨÓã¬zoneIDΪ0ʱĬÈÏÊDZ¾·þµÄ·Ç¿ç·þ·ÖÇø
    cCsLi|_i|_g|_i|_i|_d|_d|_g|_dS(Ni(t_PalaceMgr__zonePalaceMgrDictt_PalaceMgr__allEmperorDictt_PalaceMgr__palaceBlessListt_PalaceMgr__playerBelssDictt_PalaceMgr__crossZoneCfgDictt_PalaceMgr__allotCrossServerIDt_PalaceMgr__curZoneIDt_PalaceMgr__curZoneServerIDList(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRÛs                                cCset|ƒ}|jj|ƒ|jƒ}||jkrGg|j|<n|j|}|j|ƒ|S(s³õʼ»¯¹¦ÄÜÊý¾ÝʵÀý£¬´´½¨»ò¼ÓÔØÊý¾ÝʱͨÓ㬹¦ÄÜÒ»°ã²»µ÷ÓÃ
        @param dbData: ÊµÀý¶ÔÓ¦°ó¶¨µÄdbData
        @return: ³É¹¦·µ»ØÊµÀý¶ÔÏó£¬Ê§°Ü·µ»ØNone
        (RR¡R{RR¢(R R tblesstplayerIDt    blessList((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytInitBlessInstanceês    cCsUt|ƒ}|jƒ}||jkr7g|j|<n|j|}|j|ƒ|S(s³õʼ»¯¹¦ÄÜÊý¾ÝʵÀý£¬´´½¨»ò¼ÓÔØÊý¾ÝʱͨÓ㬹¦ÄÜÒ»°ã²»µ÷ÓÃ
        @param dbData: ÊµÀý¶ÔÓ¦°ó¶¨µÄdbData
        @return: ³É¹¦·µ»ØÊµÀý¶ÔÏó£¬Ê§°Ü·µ»ØNone
        (R*R5R R{(R R RR6R€((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytInitEmperorInstanceús    cCsfxV|jjƒD]E}|j|ƒ}x-|jƒD]}|j|ƒ}|jƒq2WqWi|_dS(N(RŸR™RtRšRœRzR (R RytzoneMgrRxR›((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGMClearAllEmperors    cCsg|_i|_dS(N(R¡R¢(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGMClearAllBlesss        cCsXtjƒ}||_||_||_ttjƒƒ|_||_|j    |ƒ}|S(N(
RRRRRRttimeRRRª(R R¨RxtplayerServerIDRR R§((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytAddBlesss                 cCs|jj|gƒS(N(R¢tget(R R¨((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetPlayerBlessList!scCs|jS(N(R¡(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetBlessList"scCs t|jƒS(N(R‰R¡(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetBlessCount#scCsQd}d|ko&t|jƒknr;|j|}ntrMtƒ}n|S(Ni(R)R‰R¡R
R(R RR§((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt
GetBlessAt$s % cCs||jkrdSdS(N(R¡(R R§((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytDelBless+scCs›|dks!|t|jƒkr%dS|jj|ƒ}|jƒ}||jkr—|j|}||kr—|j|ƒ|s”|jj|ƒq”q—ndS(Ni(R‰R¡RRR¢tremove(R RR§R¨R©((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytDelBlessByIndex0s!    c Cs¡tjƒ}||_||_||_||_ttjƒƒ|_|j    |ƒ}|j
ƒ}|j |ƒ}|j |ƒ}    |    j |ƒ}
|
j||ƒ|S(N(RR+R4RRRRR¯R0R«RtGetServerZoneIDRtRœR( R R¨RxR°R6RR RRyR¬R›((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt
AddEmperor=s                  cCsZxS|jƒD]E}|j|ƒ}x-|jƒD]}|j|ƒ}|jƒq/Wq WdS(N(tGetZoneIDListThisServerRtRšRœR|(R RyR¬RxR›((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt SortAllZonePs cCs:x3|jjƒD]"\}}tj||ƒr|SqWdS(Ni(R£R†t    GameWorldtCheckServerIDInList(R RRytserverIDRangeList((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRºXscCs|jS(N(R£(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetCrossZoneCfgDict]sc
Cs/tjd|ƒ|j|ks'| r8tjdƒdS||_i|_g}x±|jjƒD] }x—|D]}|jƒr…qmn|jƒ}|jƒ}|j    |ƒ}|sÑ||krÑ|j
|ƒqÑn|j |ƒ}|j |ƒ}    |    j |ƒqmWq`W|jƒ|r+tjdd|ƒntS(Ns(»Ê¹¬»¥Í¨ÅäÖøüÐÂ! updCrossZoneCfgDict=%ss»Ê¹¬»¥Í¨·ÖÇøÅäÖò»±ä²»´¦ÀítPalaceCrossZoneCfgErrorsnoZoneServerIDList=%s(R¾tLogR£RŸR tvaluesRmRRRºR{RtRœRR½tSendGameErrorExR-(
R tupdCrossZoneCfgDicttnoZoneServerIDListtallEmperorListRRxtpalaceServerIDRyR¬R›((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytUpdCrossZoneCfgDict^s0              
cCs‘i|_d}|j|ƒ}xb|jjƒD]Q}xH|D]@}|jƒ}|jƒr_q;n|j|ƒ}|j|ƒq;Wq.W|jƒdS(Ni(    RŸRtR RÄRRmRœRR½(R RyR¬RÈRRxR›((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt__setPalaceToDefaultZones       
cCs |jjƒS(N(RŸR™(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR¼‘sicCsBd}||jkr%|j|}nt|ƒ}||j|<|S(N(R)RŸR”(R RyR¬((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRt“s   cCs|jS(N(R¤(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetAllotCrossServerIDŸscCs ||_dS(N(R¤(R tallotCrossServerID((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytSetAllotCrossServerID scCstƒs dS|jS(Ni(t IsPalaceCrossR¥(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetCurZoneID¡scCs ||_dS(N(R¥(R t    curZoneID((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt SetCurZoneID£scCs|jS(N(R¦(R ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytGetCurZoneServerIDList¤scCs ||_dS(N(R¦(R tcurZoneServerIDList((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytSetCurZoneServerIDList¥sc    Csd\}}xT|jjƒD]C}x:|D]2}|jƒrAq)n||jƒ7}|d7}q)WqWd\}}x+|jD] }||jƒ7}|d7}qyWd}|tjd|ƒ|7}tjd|t    |ƒfƒ|tjd|ƒ|7}tjd|t    |ƒfƒ|S(Nitis%Save DBPalaceEmperor count :%s len=%ss#Save DBPalaceBless count :%s len=%s(is(is(
R RÄRmR&R¡tCommFunct
WriteDWORDR¾RÃR‰(    R t
emperorCnttemperorSavaDataRÈRtblessCntt blessSavaDataR§tsaveData((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt GetSaveData¨s"    cCsh||krdStj||ƒ\}}tjd|ƒxPt|ƒD]B}tjƒ}|jƒ||j|||ƒ7}|j    |ƒqFWtj||ƒ\}}tjd|ƒxFt|ƒD]8}tj
ƒ}||j|||ƒ7}|j |ƒqÂW|j j dd„dtƒtjƒ}|tjkrB|jƒn"|tjkrd|jtƒƒn|S(NsLoad DBPalaceEmperor count :%ssLoad DBPalaceBless count :%sR‚cSs
|jƒS(N(R(Rƒ((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR„ÜsR…(R×t    ReadDWORDR¾RÃtxrangeRR+tcleartreadDataR«RRªR¡RˆR
t GetServerTypet ShareDefinetserverType_Maint"_PalaceMgr__setPalaceToDefaultZonetserverType_CrossRÊRÁ(R tdatastpostdataslentcntt_R t
serverType((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytLoadPyGameDataÆs,  
   (!R'R(t__doc__RRªR«R­R®R±R³R´RµR¶R·R¹R‡R-R»R½RºRÁRÊRæR¼RtRÌRÎRÐRÒRÓRÕRÞRî(((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRž×s:                 
        
                                         #                                     cCs½tjƒ}tj|jƒƒ}i}d}tjƒ}tjƒ}x÷t    |j
ƒƒD]ã}|j |ƒ}|jƒ|kr…qXn|j ƒ}|j ƒ}    |jƒ}
|jƒ} |    sÁqXntj|    tjƒ} || krèqXn| sû| |kr
| }i}n|
|kr#i||
<n||
} g| | |<qXWtji|ƒ\}}|s“tjdƒstjd|ƒtjddƒniStjƒjƒ}||krµiS||S(NRÂi(tCrossMgrtGetSSServerMgrR¾tChangeTimeNumToDatetimet GetCrossTimeR)tGetAppIDt IpyGameDataPYtIPY_DatatrangetGetPalaceCrossCounttGetPalaceCrossByIndexR˜t GetStartDatetGetCrossServerIDtGetServerIDListtChangeStrToDatetimeR`tTYPE_Time_Format_Ymdt CheckServerIDtCheckCrossZoneCfgt GetConfigExRÅt SetConfigExt GetGameWorldR(tssMgrt crossDateTimet crossZoneDictt verDateTimetappIDt
ipyDataMgrRtipyDataRyt ipyStartDatet crossServerIDt serverIDListt ipyDataTimetzoneDcittisOKterrInfot curServerID((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRÁåsH              
 cCsDtjƒr@tƒ}| s2tjƒj|ƒ r6dStƒndS(N(R¾t IsCrossServerRÁRrRsRÊtSync_C2S_PalaceCrossInfo(tcrossZoneCfgDict((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytOnReloadConfigs      
ic
Csütjd||fƒtjƒ}|jƒ}|s9dStjd|ƒx«|jƒD]\}}|r{||kr{qWn|r¥tj||ƒs™qWn|g}n
g|}|j|ƒ}|jƒ}i|d6|d6}    t    j
t j |    |ƒqWWdS(Ns4Sync_C2S_PalaceCrossInfo toServerID=%s,syncZoneID=%ss    crossZoneCfgDict=%sRytrecServerIDList( R¾tDebugLogRrRsRÁR†R¿RtRtCrossMsgtSendToClientServerRätC2S_PalaceCrossInfo(
t
toServerIDt
syncZoneIDt    palaceMgrRRytcfgServerIDListttoServerIDListR¬tzoneServerIDListtdataMsg((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR s&   
 cCs«|d}|d}tjƒ}|jƒ}|rX||krXtjd||fƒn|j|ƒ|j|ƒ|j|ƒtjƒj    ƒ}||kr§t
ƒndS(NRyRs8###»Ê¹¬ËùÊô¿ç·þ±ä¸ü! befCrossServerID=%s,fromServerID=%s( RrRsRÌR¾RÃRÎRÒRÕRRtCheckCrossPalaceTransData(R"t fromServerIDRyRRtbefCrossServerIDR((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR<s
 
 
cCstjƒjtjƒdkS(Ni(RrtGetEventTrigMgrtGetValueRätDef_PalaceCrossState(((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRÏSscCstjƒjtjƒdkS(Ni(RrR&R'RätDef_PalaceTransDataTime(((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytIsPalaceCrossInTransDataWsc CsŒtƒr–tjdƒtjƒ}|jƒ}|jƒ}tjƒjƒ}||kr’tj    d||fƒt
j t j idd6|gƒndStjƒjt jƒs¿tj    dƒdStjddƒ}tjƒjt jƒd}||krtjd||fƒdStjƒ}|jƒ}|dkrItj    d    ƒdStjƒj|ƒ}|jƒ}|t jkr”tj    d
||fƒdStjƒjt jƒ}    |    r| rttjƒƒ}
|
|    dkrtj    d |tj|    ƒfƒdSntj|ƒtj    d|ƒtjƒjt jttjƒƒƒ|j ƒ} tj    dt!| ƒƒt
j t j i| d6|gƒdS(Ns±¾·þ»Ê¹¬ÒѾ­¿ç·þÁË!sR±¾·þ»Ê¹¬ÒÑ¿ç·þµ«Ã»ÓÐÔڸÿç·þ»¥Í¨·ÖÇøÀֱ½ÓÇëÇó¼ÓÈë! serverID=%s,crossServerID=%sit checkInZones¸Ã·þÎñÆ÷ÔÝʱ먦·Å¼ÓÈë¿ç·þ!t PalaceCrosss-±¾·þ»Ê¹¬»¥Í¨ËùÐ迪·þÌì²»×ã! serverDay=%s < %sis±¾·þ»Ê¹¬Î´·ÖÅ以ͨ·ÖÇø!s?±¾·þ»Ê¹¬»¥Í¨Ä¿±ê¿ç·þID·ÇÁ¬½Ó״̬! crossServerID=%s,connState=%sii<s9±¾·þ»Ê¹¬»¥Í¨´«ÊäÊý¾ÝÖÐ! crossServerID=%s,transDataTime=%ss6±¾·þ»Ê¹¬¿ªÆô»¥Í¨¿ªÊ¼´«Êä»Ê¹¬Ïà¹ØÊý¾Ý! crossServerID=%ss dataslen=%stsyncDatai("RÏR¾RRrRsRÌRÓRRRÃRtSendToCrossServerRätS2C_PalaceDataR&R't Def_CanCrossRõt
GetFuncCfgt Def_ServerDayRðRñt GetSSServert GetConnStatet ssConn_NormalR)RR¯tChangeTimeNumToStrtChPlayertSyncOnlinePlayerToCrosstSetValueRÞR‰( tignoreCDRR RRt NeedServerDayt    serverDaytssServert    connStatet transDataTimetcurTimeR-((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR#[sR         #          %  cCsód|kr¹tjƒ}|j|ƒ}tjd||fƒ|sHdS|j|ƒ}||jƒkr„tjd||fƒdStjd||fƒ|j|ƒtd|ƒdS|d}tjƒ}|j|ƒ}tjd||fƒ|s?d}tj    d    d
||fƒt
j t j itd 6|gƒdS|j|ƒ}|d t|ƒ}}}    tjd |    ƒg}
tj||ƒ\} }tjd| ƒxt| ƒD]} tjƒ} || j|||    ƒ7}|j| ƒ}|jƒ}|j|ƒ}|j|tƒ||
krµ|
j|ƒqµqµWtj||ƒ\} }tjd| ƒxFt| ƒD]8} tjƒ} || j|||    ƒ7}|j| ƒqpWt
j t j itd 6|gƒtd|ƒtjd|d|
ƒdS(NR+sA¼ì²éÓÎÏ··þÊÇ·ñÒѾ­³É¹¦¼ÓÈë»Ê¹¬»¥Í¨·ÖÇø! fromServerID=%s,zoneID=%ss9ÒѾ­Ôڸûʹ¬»¥Í¨·ÖÇøÀïÁ˲»´¦Àí! fromServerID=%s,zoneID=%ss5¼ì²éÇҳɹ¦¼ÓÈë»Ê¹¬»¥Í¨·ÖÇø! fromServerID=%s,zoneID=%sRR-s7ÊÕµ½ÓÎÏ··þͬ²½µÄ»¥Í¨»Ê¹¬Êý¾Ý! fromServerID=%s,zoneID=%ss
not zoneIDtS2C_PalaceDataErrors1»¥Í¨»Ê¹¬Êý¾Ýͬ²½Ê§°Ü! fromServerID=%s,errorMsg=%sRis__unpackPalaceData: dataslen=%ssRead DBPalaceEmperor count :%ssRead DBPalaceBless count :%stsyncPalaceIDList( RrRsRºR¾RÃRtRR}RRÅRRRätC2S_PalaceDataRetR
R‰R×RßRàRR+RâR«RRœRR-R{RRªt PlayerPalacetSyncPalacePreviewInfo(R"R$RRyR¬R-terrorMsgRèRéRêRBRëRìR RRxR›((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyR/’s`    
        cCsr|d}tjd||fƒtjƒjtjdƒ|sDdStjd|ƒtjƒjtjdƒdS(NRs1ÊÕµ½»¥Í¨»Ê¹¬Êý¾Ýͬ²½½á¹û! fromServerID=%s,isOK=%sis?»¥Í¨»Ê¹¬Êý¾Ýͬ²½³É¹¦£¬±¾·þÕýʽ¿ªÆô¿ç·þ»Ê¹¬»¥Í¨! fromServerID=%si(R¾RÃRrR&R9RäR)R((R"R$R((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRCÒs
cCsPtjƒrtƒrdSnttjƒƒ}tjddƒ}tjƒ}xýt    |j
ƒƒD]é}d}|j |ƒ}|j ƒ}||d}||kr¤Pn|j ƒ}|jƒ}    |jƒ}
|jƒ} |j|ƒt| jƒƒ} t| jƒƒ} tjd||    | | |
fƒt||
| | ƒ|j
ƒs_Pq_q_WdS(NRiii<sWÄ¿±êË͸£ÒѹýÆÚ! tagPlayerID=%s,palaceID=%s,playerCnt=%s,moneyTotalOut=%s,tagServerID=%s(R¾t IsMainServerRÏRR¯RõR1RrRsR÷RµR¶RRRRRR¹R‰R™tsumRÄRÃtSendBlessEndMail(R@t outtimeMinuteRRìRR§t    blessTimet
passMinutet tagPlayerIDRxt tagServerIDt getPlayerDictt    playerCntt moneyTotalOut((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pytOnMinuteàs4                  cCsE|tjkrdSg}||g}tjd|||d|ƒdS(NRR(RätRealPlayerIDStartt
PlayerMailt SendMailByKey(RMRNRPRQtitemListt    paramList((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyRIs  (%R7RR×R¾RäRÿRõRDRTRrRðRR`RR¯R÷tEmperorDataTypeListR‡tEmperorDataType_ThroneRRR*RpR”RžRÁRRRRÏR*R
R#R/RCRRRI(((snD:\SG_ServerCode\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\Script\DB\StructData\DBPalace.pyt<module>sB                   8Bÿ    3                 7    @        "