hch
2018-10-09 6768d1fd777785c3e7fe4422f6ad749664bae061
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
#¹¼[c@sddlZddlZddlZddlZddlZddlZddlZddlZddlZddl    Z    ddl
Z
ddl Z ddl Z ddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddl Z d„Z!d„Z"d„Z#d„Z$d„Z%d„Z&d„Z'd    „Z(d
„Z)d „Z*d „Z+e,d „Z-d„Z.d„Z/d„Z0d„Z1d„Z2d„Z3d„Z4d„Z5d„Z6d„Z7d„Z8d„Z9d„Z:d„Z;ej<d„Z=dd„Z>d„Z?d „Z@d!dd"„ZAd#„ZBd$„ZCd%„ZDd&„ZEd'„ZFd(„ZGd)„ZHd*„ZId+„ZJd,„ZKd-„ZLd.„ZMd/„ZNd0„ZOd1„ZPd2„ZQd3„ZRd4„ZSd5„ZTd6„ZUd7„ZVd8„ZWd9„ZXd:„ZYd;„ZZd<„Z[d=„Z\d>„Z]d?„Z^d@„Z_dA„Z`dB„ZadC„ZbdD„ZcdE„ZddF„ZedG„ZfdH„ZgdS(IiÿÿÿÿNcCsEtjdƒtj|ƒtjƒj|ƒt|ƒtjƒdS(NsGameServer -> OnHour!(    t    GameWorldtLogtPlayerEventCountertDoLogic_GameServer_OnHourt GetGameWorldtOnHourt__SetWorldKey_SavePlayert GameLogInfotSet_Server_Hour(t
curTimeStrttick((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRxs   
 
cCsütjdƒtjƒtj|ƒtjtjƒ}tj    t
j |ƒtjtj ƒ}tjtj ƒ}tj    t
j|ƒtj    t
j|ƒtjƒj|ƒtjƒtjƒtjƒtjƒtjƒtjƒddl}|jƒdS(NsGameServer -> OnDay!iÿÿÿÿ(RRtPlayerBillboardtCopyBillboardOnDayRtDoLogic_GameServer_OnDaytPlayerDBGSEventtGetDBGSTrig_ByKeyt Def_ServerDaytSendMapServerMsgExt ShareDefinetDef_Notify_WorldKey_ServerDaytDef_IsMixServertDef_MixServerDaytDef_Notify_WorldKey_IsMixServert Def_Notify_WorldKey_MixServerDayRtOnDayRtSet_Server_DaytNoteOssBillboardInfoByDaytPlayerFamilyRedPackettDoOnDaytChPlayertUpdataPlayerLVInfotPlayerCompensationtClearUpTimeOutCompensationt PlayerGeTuitClearFMTGeTuiLimitt PlayerBoursetOverTimeItemsDeal(R    R
t openServerDayt isMixServert mixServerDayR#((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR‹s& 
 
 
 
 
 
 
 
cCs/tjdƒtj|ƒtƒtjƒdS(NsGameServer -> OnDayEx!(RRRtDoLogic_GameServer_OnDayExt__Set_Server_DayExt
PlayerXMZZt XMZZOndayEx(R
((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytOnDayEx±s
 
cCs;tjdƒtjƒtj|ƒtjƒj|ƒdS(NsGameServer -> OnWeek!(RRRtSet_Server_WeekRtDoLogic_GameServer_OnWeekRtOnWeek(R    R
((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR/Às
 
 cCs%tjdƒtj|ƒtƒdS(NsGameServer -> OnWeekEx!(RRRtDoLogic_GameServer_OnWeekExt__Set_Server_WeekEx(R
((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytOnWeekExÉs  cCs;tjdƒtj|ƒtjƒj|ƒtjƒdS(NsGameServer -> OnMonth!(RRRtDoLogic_GameServer_OnMonthRtOnMonthRtSet_Server_Month(R    R
((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR4Õs
 
cCs%tjdƒtj|ƒtƒdS(NsGameServer -> OnMonthEx!(RRRtDoLogic_GameServer_OnMonthExt__Set_Server_MonthEx(R
((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyt    OnMonthExÝs  cCs;tjdƒtj|ƒtjƒj|ƒtjƒdS(NsGameServer -> OnYear!(RRRtDoLogic_GameServer_OnYearRtOnYearRtSet_Server_Year(R    R
((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR:és
 
cCsÄy't|jƒdjdƒdƒ}Wn+tk
rT}tjd||fƒdSXtjƒ}|dkr˜|jtjƒsÀ|j    tjdƒqÀn(|jtjƒrÀ|j    tjdƒndS(Nis:is!###»ñÈ¡Íæ¼Ò´¢´æ×ÖµäÒì³£ = %s , %si(
tinttsplitt BaseExceptionRRRt GetDictByKeytChConfigtDef_WorldKey_SavePlayertSetDict(R    ttimeStrtet    gameWorld((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRùs'  cCstjtƒ|ƒdS(N(Rt GetPsycoFunct__Func_HighPrecisionProcess(R
((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytHighPrecisionProcessscCs tjƒjtjƒsdStj|ƒtj|ƒt    j
|ƒt    j |ƒt j |ƒtj|ƒtj|ƒtjjƒ}|j}|j}|d}tjƒjtjƒ}||krïtjƒjtj|ƒt||ƒn|ddkr    tƒndS(Nii
i(RRR?R@tDef_WorldKey_IsGameWorldInittPlayerFamilyPartytFamilyParty_Processt PlayerFamilytOnLeaderImpeachTickt GameWorldBosstDoCheckWorldBossReborntProcessBossGeTuiR!tProcessNewGuyCallBackGeTuit
PlayerTeamt DoTeamProcesst PlayerDBOpert PyDBProccesstdatetimettodaytminutetsecondtDef_WorldKey_ProcessMinuteRBtGameWorldProcessOnMinutetSendMapCommMapLinePlayerCount(R
t curDateTimet    curMinutet    curSecondt processMinutetlastProcessMinute((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRGs(                   
 
cCsR| rtj rdStjd|tjfƒtjtjtjƒtt_dS(NsO֪ͨ³£¹æµØÍ¼Íæ¼ÒÈËÊýÐÅÏ¢: isForce=%s,PyGameData.g_commMapLinePlayerCountDict=%s(    t
PyGameDatat g_needSyncCommMapLinePlayerCountRtDebugLogtg_commMapLinePlayerCountDicttSendCommMapServerMsgRt*Def_Notify_WorldKey_CommMapLinePlayerCounttFalse(tisForce((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR\Gs        cCsjt|ƒt|ƒtjƒtjƒtjƒtjƒtj    |ƒ|ddkrft
j ƒndS(Nii( tDoCheckNewServerOpentDisposeGameWorldEvenByTimetGameWorldActionControltDispose_OperationActionStatetDispose_DailyActionStatetDispose_FBStateTimetGameWorldAverageLvtOpenWorldAverageLvRRtDoCountdownLeaveTeamLogicRLtUpdFamilyTotalFightPower(R^R
((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR[Ts
 
 
 
 
 
  cCstjtƒ|ƒdS(N(RRFt__Func_OnGameWorldProcess(R
((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytOnGameWorldProcesspscCsut|ƒt|ƒt|ƒt|ƒt|ƒt|ƒt|ƒt|ƒt|ƒt    j
ƒt j |ƒdS(N( tDisposeGameWorldEvenByTrucktDisposeGameWorldBroadcasttDisposeGameWorldGametDisposeGameActivePlayertDispose_MapServer_TimetDispose_MapServer_PlayerSavetDisposeMapServerRunningStatetDispose_DataBase_GMShelltDispose_SendMsg_RouteServert EventReporttOnTimeCloseScribeTxtRNtCalcGameWorldBossOnlineCnt(R
((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRtxs
 
 
 
 
 
 
 
 
 
 cCsstjƒ}|jtjƒ}|dkr.dS||tjtjkrLdS|jtj|ƒtjƒjƒdS(Niÿÿÿÿ(RRt GetTickByTypeR@tTYPE_SendMsg_RouteServertTYPE_Tick_Timet SetTickByTypet SendHeartBeat(R
REtlastTick((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR~ s  cCs¹tjƒ}||jtjƒtjtjkr6dS|jtj|ƒ|jƒ}|jƒ|j    ƒ}|sudSx3t
d|ƒD]"}|j |ƒ}t j |ƒq…W|jƒdS(Ni(RRR‚R@tTYPE_ReadDateBaseGMR„R…tGetDBGMCommandListManagertDataServer_GMCommandReqtGetCounttrangetGetAttGMShelltDoLogic_DBGMCommontClear(R
REtdBGMCommandListManagertdBGMCommandListCounttitgmCommon((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR}¸s & 
 
cCs`tjƒ}||jtjƒtjtjkr6dS|jtj|ƒ|jtjƒƒdS(N(    RRR‚R@tTYPE_SendTimeToMapServerR„R…t
OnTimeSynctGetCurrentDataTimeStr(R
RE((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRz×s  &cCsWtjƒ}||jtjƒtjtjkr6dS|jtj|ƒ|jƒdS(N(RRR‚R@tTYPE_SendServerStateR„R…tDataServer_ServerStateReport(R
RE((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytDisposeServerStateès  &
cCsútjƒjtjƒdkr"dStjjƒjdkr>dStjƒ}g}x6t    |j
ƒƒD]"}|j |ƒ}|j |ƒqcW|j dtƒxAt    dt|ƒƒD]*}|dkrÅPn||}|jƒq¯WtjƒjtjdƒdS(Nii2tkeyii(RRR?R@RARVRWRXtGetPlayerManagerRŒtGetActivePlayerCounttGetActivePlayerAttappendtsorttGetKeytlentMapServer_PlayerSaveRB(R
t playerManagert curPlayerListR“t    curPlayer((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR{ùs"  
cCs
|jƒS(N(tGetLV(R¦((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR¡sc    Cs+tjjƒjddkr dSi}d}tjƒ}|jƒ}xŠt|ƒD]|}|j|ƒ}|dksQ|j    ƒ r…qQnt
j |ƒr¤|d7}qQntj |ƒ}|j |dƒd||<qQWx@|jƒD]2\}}tj|||ƒtj|d|ƒqÞWtj|i|ƒdS(Niii(RVRWRXRRœRtxrangeRžtNonet    GetInitOKt PlayerControltGetIsTJGtGetPlayerPlatformtgettitemstDataRecordPacktDR_OnLinePlayerCountRtWriteEvent_concurrency(    R
tplatformOLDictt tjgOnlineCntR¤tactivePlayerCounttindextplayertplatformt    playerCnt((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRy$s(  
c Csµtjƒ}g}tjjƒ}x7t|jƒƒD]#}|j|ƒ}|jƒ}tj|j    ƒƒ}tj|j
ƒƒ}| s| rº|j |ƒtj d|||fƒq4n|j ƒs;||kr;||kr;|jtƒ|jƒ}    t|||    ƒtj|ƒ}
|
dkr8tjd|
ƒq8q;n||kr4|j |ƒq4q4WxS|D]K} t| ƒ|j| ƒtj| ƒ}
|
dkrbtjd|
ƒqbqbWdS(Ns%###---»î¶¯ÉèÖÃʱ¼äÒì³£ , %s , %s , %sti(RtGetGameWorldEventManagerRVRWRŒtGetActiveEventCounttGetActiveEventByIndext
GetEventIDtGetDateTimeByStrt
GetEndTimet GetStartTimeRŸRtGetIsProcessingtSetIsProcessingtTruetGetPart__NotifyMapServerProcesstGMCommontGetGameServer_GM_GameOpen_MsgR«t WorldNotifytDoLogic_ProcessEvent_ClosetDelActiveEventtGetGameServer_GM_GameClose_Msg( R
t eventManagertdelListt todayDateTimeR¶teventteventIDt eventEndTimeteventStartTimeteventPartsysMsgt
delEventID((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRx€s:         
  cCsŒ|tjkr%ttt|ƒƒnc|tjkrJttt|ƒƒn>|tjkr~t|ƒ\}}t    t||ƒn
|j
ƒdS(N( R@tDef_GY_GM_Game_DoubleExpt__DisposeWorldExpEventRÄR<tDef_GY_GM_Game_DropRatet__DisposeWorldDropRateEventtDef_GY_GM_Game_Broadcastt__GetBroseCastStrt__DisposeBroadcastEventtNotify_AllMapServerProcess(RÐRÑRÔtintervaltmsg((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRƶs
cCsX|tjkrttƒn8|tjkr8ttƒn|tjkrTttƒndS(N(R@R×RØRhRÙRÚRÛRÝ(RÑ((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRÊÌs   cCs7|jdƒ}t|| ƒ}||d}||fS(Ns:i(tfindR<(RÔR¶RßRà((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRÜÞscCs3tjƒ}|r"|j|ƒn |j|ƒdS(N(RRt
SetExpRate(tisOpentexpRateRE((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRØés
  icCs3|rtd|tjƒ}nd}t|ƒdS(Ni(tmaxR@tDef_MaxRateValuetSetWorldDropRateAdd(RãRätworldDropRateAdd((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRÚ÷s
 
cCsdS(N((Rè((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRçscCsat|ƒ}|s |jƒdStjƒ}x!|D]}|jt|ƒƒq3W|j|ƒdS(N(tevalRÞtIPY_GameServert    IntVectort    push_backR<tNotify_SelectMapServerProcess(RÐt    mapIDListtvectortmapID((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyt__DisposeMapGiveExps 
   RºcCsZtjƒ}|r/|j|ƒ|j|ƒn'|j|ƒ|jdƒ|jdƒdS(Ni(RRtSetBroadcastMsgtSetBroadcastIntervaltSetBroadcastTick(Rãt broadcastMsgt broadcastTickRE((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRÝ*s     cCs¬tjƒ}|jtjƒ}|s(dS|jƒs8dStjƒ}|jƒ}|dkr`dS||jƒ|j    ƒddkrˆdStj
ƒj |ƒ|j |ƒdS(NRºi<iè( RR»tFindActiveEventR@RÛRÂRtGetBroadcastMsgtGetBroadcastTicktGetBroadcastIntervalRœt BroadcastInfoRô(R
RÍt
broadEventRERõ((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRwBs     $ c    Csòg}tjƒ}x6t|jƒƒD]"}|j|ƒ}|j|ƒq%W|sUdStjdƒd}tt    j    ƒƒ}|t
j d}x`|D]X}||j ƒ|kr´q’ntj d|jƒ|j ƒ||fƒtj|ƒq’WdS(Nt    TruckTimei<iès@ÔËïÚʱ¼ä³¬Ê±: %d disappear! startTime=%d,curTime=%s,truckTime=%s(RtGetTruckManangerRŒt GetTruckCounttGetTruckByIndexRŸt ReadChConfigtGetEvalChConfigR<ttimeR@tDef_PlayerTruckLogoffTickt GetLogoffTickRt
GetOwnerIDt PlayerTrucktDelTruck(    R
tworldTruck_Listt truckManangerR¶ttruckt    truckTimetcurTimet disappearTimetcurTruck((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRvts"       cCst|ƒdS(N(tDoLogic_GameWorldEvenByTime(R
((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRk­s
c    Cs²tjƒjtjƒ}|dkr(dStjƒ}tjjƒ}|j}|j    }tjj
|ƒd}|j }|j }t jƒ\}    }
} } } |    |ksÈ|
|ksÈ| |ksÈ| |krØt||ƒn|
|ksü| |ksü| |kr t||ƒntƒr"t|ƒn| |kr>t||ƒntƒrTt|ƒn| |ksl| |kr|t||ƒntƒr’t|ƒn| |kr®t||ƒndS(Niÿÿÿÿi(RRR‚R@tTYPE_EvenByTimeR—RVRWthourtdayt isocalendartmonthtyearRtInitServerTimeRRt__Get_Can_OnDayExR,R/t__Get_Can_OnWeekExR2R4t__Get_Can_OnMonthExR8R:(R
R‡R    R t curTimeHourt
curTimeDayt curTimeWeekt curTimeMontht curTimeYeart
serverHourt    serverDayt
serverWeekt serverMontht
serverYear((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR·s8                  0$                 c    Csºtjƒ}tjtjƒ}|r¶|d}|dd}|d}tj|||dddƒ}||}|j}|j}|dkrdS|dkr¶|tj    dkr¶dSndS(s5ÅжϿɷñÁ賿Xµã¹ýÌì
    @return: 0-²»¿É£» 1-¿ÉÒÔ
    i'idiii(
Rt GetServerTimeRRtDef_Server_DayExRVtdaystsecondsRtDef_OnEventHour(    R]t lastOndayExtlastOndayEx_YeartlastOndayEx_MonthtlastOndayEx_Dayt lastDatetimetpassTimetpassDayst passSeconds((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRðs 
 
 
         cCs‘tjƒ}|jtjkr7|tjddƒ}n|jd|jd|j    }t
j t
j |ƒtj tj|ƒtjd|ƒdS(NR'ii'ids!Set_Server_DayEx, OnDayExValue=%s(RR%RRR)RVt    timedeltaRRRRtSetDBGSTrig_ByKeyR&RtDef_Notify_WorldKey_OnDayExR(t onDayDateTimet ondayExValue((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR)s c Csítjƒ}tjj|ƒ}|\}}}tjtjƒ}|ré|d}|d}||kru||krudS|dkré|tjddƒ}tjj|ƒ\}    }
} |    |kræ|
|kræ|jt    j
krãdSqæqéndS(s5ÅжϿɷñÁ賿Xµã¹ýÖÜ
    @return: 0-²»¿É£» 1-¿ÉÒÔ
    idiiR'i( RR%RVRRRtDef_Server_WeekExR2RRR)( R]Rt dateTime_yeart dateTime_weekt dateTime_dayt lastOnWeekExtlastOnWeekEx_YeartlastOnWeekEx_WeektpreWeekDateTimet preWeek_yeart preWeek_weekt preWeek_day((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR$s$ 
 
 cCsÈtjƒ}tjj|ƒ}|\}}}|dkr|jtjkr|tjddƒ}tjj|ƒ\}}}n|d|}tj    tj
|ƒtj tj |ƒtj d|ƒdS(NiR'iids#Set_Server_WeekEx, OnWeekExValue=%s(RR%RVRRRR)R2RR3R7RtDef_Notify_WorldKey_OnWeekExR(tonWeekDateTimeRR8R9R:t onWeekExValue((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR1Ps c    Csîtjƒ}|j}|j}|j}tjtjƒ}|rê|d}|d}||kro||krodS|dkrê|dkrdn|d}|dkr©|n|d}||krç||krç|jt    j
krädSqçqêndS(s5ÅжϿɷñÁ賿Xµã¹ýÔÂ
    @return: 0-²»¿É£» 1-¿ÉÒÔ
    idiii ( RR%RRRRRtDef_Server_MonthExRRR)(    R]R:tdateTime_monthR8t lastOnMonthExtlastOnMonthEx_YeartlastOnMonthEx_MonthtpreMonth_montht preMonth_year((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR`s&             
 
 cCsÖtjƒ}|j}|j}|j}|dkr|jtjkr|dkrWdn|d}|dkrs|n|d}tjdƒn|d|}t    j
t    j |ƒtj tj |ƒtjd|ƒdS(Nii sWSetMonthEx ÔÂ1ºÅÌØÊâXµã֮ǰ¹ýÌìµÄ£¬´ú±íÔ²î´óÓÚ1µÄÔÂ1ºÅ¹ýÔ£¬ÕâʱºòµÄ¹ýÔÂÖµÐèÉèÖÃΪÉÏÔÂids%Set_Server_MonthEx, onMonthExValue=%s(RR%RRRRRR)RRR3RERtDef_Notify_WorldKey_OnMonthEx(tonMonthDateTimeR:RFR8tonMonthExValue((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR7Žs             cCs7tjƒtjƒjtjƒtjƒjt    ƒdS(N(
R tInitServerBillboardRtGetTeamManagertSetMaxTeamMemberCountR@tDef_Team_MaxPlayerCountRt SetPreInitOKRÄ(R
((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytPreInitGameWorld¤s
cCstjƒjtjdƒtjƒjtjƒtjtj    ƒ}tjtj
ƒ}|dksk|dkr“tj |r}|nt t j ƒƒƒntjƒjtjƒtjƒjƒjƒtjƒtjƒtjƒtjƒtjƒtjƒtƒtjƒt j!ƒdS(Nii("RRRBR@RItSetTickTypeCounttTYPE_Tick_CountRRtDef_InitOpenServerTimetDef_OpenServerWeekdaytSetInitOpenServerTimeR<RtGetFamilyManagertSetFamilyUpperLimitCounttDef_Family_MaxCnttGetDBGoldOrderFormMgrtSortR tClearBillboardOnServerInittSortServerBillboardRLt DoFamilySortRlRotGameWorldFamilyWartOnGameServerInitOKRt InitDllAppIDt__DoMixServerInitR*RtLoadPlayerLVData(R
tinitOpenServerTimetopenServerWeekday((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyt InitGameWorld¶s$(
 
 
 
 
 
 
 
cCsntjtjƒ}|sdStjtjƒ}||kr>dSttjƒƒ}||kr`dSt|ƒdS(N(RRtDef_SetOpenServerTimeRWR<RtOnNewServerOpen(R
tsetOpenServerTimetcurOpenServerTimeR ((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRjès  
cCs…tjdƒtjtjƒ}|s)dSi}tjƒjƒ}xpt|jƒƒD]\}|j    |ƒ}|j
ƒ}|j ƒ}| sT|tj tjgkr¦qTn|||<qTWx>|j ƒD]0\}}|j|ƒtjd||fƒqÁWxktjD]`}tjƒj|ƒ}    |    s&dn    |    jƒ}
|
rÿtj|ƒtjd||
fƒqÿqÿWtjƒ} xetjD]Z} | j| ƒ} | sšdn    | jƒ}| j| ƒ|rytjd| |fƒqyqyWg}tjƒ}x0t|jƒƒD]}|j|j    |ƒƒqüWx8|D]0}tjd|jƒƒtjd||ƒq#Wt j!ƒgt"_#t$|ƒtj%|ƒdS(sзþ¿ªÆôÐèÒª´¦ÀíµÄÂß¼­sÖ´ÐÐÕýʽ¿ª·þÖØÖÃÂß¼­...NsDeleteGameServerEventTrig %s=%sisClearBillboard %s, count=%ss"DeleteRecData recType=%s, count=%ssDeleteFamily familyID=%s(&RRRRRjRtGetDBGameServerEventTrigManagerR¨R‹RR¾t
GetIsEventRWR¯t DeleteByKeyRtBillboardTypeListt GetBillboardt FindBillboardR tClearBillboardByIndextGetUniversalRecMgrtDef_UniversalGameRecTypeListt GetTypeListtCounttDeleteRZRŸtGetIDRLtDoLogic_DeleteFamilyR©RbtDoFamilyWarResetRbtg_sortBOSSRefreshListtAllMapServerInitOKRY(R
RltdbgsTrigKeyDicttgsEventTrigManagerR“tgsEventR›tvaluetbillboardIndext    billBoardtcounttuniversalRecMgrtrecTypet
recordListt recordCountt
familyListt    familyMgrtfamily((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRkøsR         
    
 cCstjtjƒS(N(RRRX(((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytGetOpenServerWeekday3sc    Cs®tjƒjtjƒƒtƒtƒtƒtjƒtj    ƒtj
ƒt ƒt j tjƒ}tjtj|ƒt j t jƒ}tjtj|ƒt j t jƒ}tjtj|ƒt j t jƒ}tjtj|ƒt j t jƒ}tjtj|ƒt j t jƒ}tjtj|ƒt j tjƒ}tjtj|ƒt j tjƒ}tjtj|ƒtjƒtjƒt ƒt!t"ƒt#j$ƒdS(N(%RRtNotify_AllMapServerInitOKR—t__SetWorldExpRatet__SetWorldDropRateAddt__NotifyMapServerEventRlt!SendMapServerOperationActionStatetSendMapServerDailyActionStatetSendMapServerFBFuncStatet__NotifyMissionPubEventRRRt"Def_Notify_WorldKey_WorldAverageLvRRRRXt%Def_Notify_WorldKey_OpenServerWeekdayRRRRtDef_LastMixServerDayt$Def_Notify_WorldKey_LastMixServerDayt&Def_Notify_WorldKey_ClearBillboardSignt*Def_Notify_WorldKey_FamilyActivityDayStateRNtOnMapServerInitOKRbtSendAllMapGlobalDropInfoR\RÄRLtRandomFakeFamily(    R
tworldLvR%RhR&R'tlastMixServerDaytlastSigntfadState((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR~9s<
 
 
 
 
 
 
cCs    tjtjƒ}|s)tjdƒdStjtjƒ}|rRtjdƒdStjdƒtjƒ}tjg}tjdt    |ƒƒx|D]}|j
|ƒq•Wt |ƒt j ƒtjtjdƒtjtjƒ}tjtj|ƒtjdƒdS(Ns$·ÇºÏ·þ£¬²»´¦ÀíºÏ·þÊ×´ÎÆô¶¯Êý¾Ý¼ÓÔØ£¡sºÏ·þÊ×´ÎÆô¶¯¼ÓÔØÒѾ­´¦Àí¹ý£¡sºÏ·þÊ×´ÎÆô¶¯¼ÓÔØ´¦Àí...s&    Çå³ýÖ¸¶¨Í¨ÓÃÊý¾Ý delRecTypeList=%sis    ºÏ·þÊ×´ÎÆô¶¯¼ÓÔØ³É¹¦...(RRRRRdtDef_IsMixServerInitOKRuRt%Def_UniversalGameRecType_ManorWarInfotstrRyt__DelOutofdayRecDataRbR|R3RR˜(R&tisMixServerInitOKR†tdelRecTypeListt
delRecTypeR!((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyReŽs*      
 
 c Csûttjƒƒ}tjd|ƒid    tj6}xÁ|jƒD]³\}}|j|ƒ}|sgq@nd}|jƒ}x]t    |ƒD]O}||}    |j
|    ƒ}
||
j ƒ|kr†|j |    ƒ|d7}q†q†Wtjd|||fƒq@WdS(
Ns"Ö´ÐÐɾ³ý¹ýÆÚµÄͨÓÃÊý¾Ý, curTime=%siiiiis2    É¾³ý¹ýÆÚÌõÊý: recType=%s,totalCnt=%s,delCnt=%sièi€Þ(( R<RRRRt&Def_UniversalGameRecType_MergeRegisterR¯RwRxR¨tAttGetTimeRy( R†R tdelOutofdayRecDataDictt otDayRecTypetotTimet otRecDataListtdelCntttotalCntR¶tdelIndext    otRecData((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR¦³s" 
 cCsqtjƒ}|jtjƒ}|s0tj}n*|jƒsHtj}nt|jƒƒ}tj    ƒj
|ƒdS(N( RR»R÷R@R×RæRÂR<RÅRRâ(RÍt expRateEventRä((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRÌs    cCsgtjƒ}|jtjƒ}|s1ttƒn2|jƒsJttƒnttt    |j
ƒƒƒdS(N( RR»R÷R@RÙRÚRhRÂRÄR<RÅ(RÍRÐ((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRás    cCsjtjƒ}xWt|jƒƒD]C}|j|ƒ}|jƒsFqnt||jƒ|jƒƒqWdS(N(    RR»RŒR¼R½RÂRÆR¾RÅ(RÍR¶RÐ((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR‘ós   c    CsØtjƒ}|jƒ}|jƒ}|jƒ}|jƒ}|jƒ}tjƒj    ƒj
|||||ƒ|t j ||f<t j j|iƒ}||ks±|||krÔ|||<|t j |<tt _ndS(N(RêtIPY_GMapServerStatetGetRouteServerIndextGetMapIDt    GetLineIDtGetCurPlayerCounttGetMaxPlayerCountRRtGetMapServerStateManagertSetZoneServerStateRbtg_commMapLineRouteDictReR®RÄRc(    R¶R
tpacktrouteServerIndexRðtlineIDtcurPlayerCounttmaxPlayerCounttlinePlayerCountDict((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytMapServer_RefreshStates      %
  cCsgtjƒ}tjƒjƒ}|j|jƒƒ}|j|jƒƒ|j    |j
ƒƒ|j ƒdS(N( RêtIPY_GMissionPubRRtGetDBMissionPubManagertAddDBMissionPubt GetMissionIDtSetMissinoPubTypetGetMissinoPubTypetSetPubIDtGetPubIDRÞ(R¶R
R¿tmissionPubManagert curMissionPub((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytMapServer_MissionPub2s 
cCs tjƒjƒ}|jƒdS(N(RRRÇt#NotifyAllMapServerMissionPubProcess(RÎ((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR•?s
cCsitjƒ}|jƒ}|jƒ}|jƒ}t|||ƒ|tjkrettj||ƒndS(N(RêtIPY_GTreasureDropt    GetItemIDt GetItemCounttGetDropFunctionTypet__ProcessFunctionTypeDroptdfdAll(R¶R
R¿titemIDt    itemCounttdropFunctionType((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytMapServer_TreasureDropWs    cCswtjƒjƒ}|j||ƒ}|dkr4dS|jƒ|}|j|ƒ||jƒkrs|jdƒndS(Ni(    RRtGetDBGameWorldDropManagertFindGameWorldDropR©tGetCurrentCounttSetCurrentCountt GetDropCounttNotify_AllMapServerDropState(RÚRØRÙt dropManagertcurDropt
finalCount((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyRÖjs  cCsYtjƒjƒ}x6t|jƒƒD]"}|j|ƒ}|jdƒq%W|jƒdS(Ni(RRRÜRŒR‹RRßt%Notify_AllMapServerClearForbiddenDrop(RâR“Rã((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyt__ClearTreasureDropCount}s 
cCstjddƒ}tjddƒ}tjdƒ}x@|jƒD]2}tj|}tj|ƒ}tj||ƒq@Wx@|jƒD]2}tj    |}tj|ƒ}tj||ƒqƒWx@|jƒD]2}tj
|}tj|ƒ}tj||ƒqÆWdS(Nt GlobalDropCDiitNPCGlobalDropRate( t IpyGameDataPYtGetFuncEvalCfgtkeysRt Def_Notify_WorldKey_LastDropTimeRRRRt$Def_Notify_WorldKey_DropNPCKilledCntt"Def_Notify_WorldKey_NPCKilledCount(tglobalDropCDDicttglobalKilledCountDropDicttglobalDropRateDictRØR›tdropTimet    killedCnttnpcID((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR‡s    cCs=|\}}tj|}tj||ƒtj||ƒdS(N(RRìRR3RR(tmsgListRØRòR›((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytUpdGlobalDropCDs
  cCs=|\}}tj|}tj||ƒtj||ƒdS(N(RRíRR3RR(RõRØt updKilledCntR›((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytUpdGlobalDropRate¥s
  cCs=|\}}tj|}tj||ƒtj||ƒdS(N(RRîRR3RR(RõRôR÷R›((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytUpdGlobalKillCount­s
  cCsŽtjƒjƒ}tjƒ}|j|jƒ|jƒƒ}|j|j    ƒƒ}|j
|j    ƒƒ|j |j ƒƒ|j |jƒƒdS(N(RRtGetGameFbEventListRêtIPY_GRegisterFBInfotGetGameFbEventR¹t GetDataMapIDtGetGameFbDetailtGetClientLineIDtSetClientLineIDtSetMaxPlayerCountR»t    SetFbInfot    GetFbInfo(R¶R
t
fbEventMgrtmPackt gameFBEventtfbDetail((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytMapServer_RegisterFBInfoÏs cCsxtjƒ}tjƒjƒ}|j|jƒ|jƒƒ}|dkrLdS|j    |j
ƒƒ}|j |j ƒƒdS(N( RêtIPY_GFbInfoRefreshRRRútFindGameFbEventR¹RýR©RþRÿtSetPlayerCounttGetPlayerCount(R¶R
R¿tfbEventRR((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytMapServer_FbInfoRefreshïs  cCsptjƒ}tjƒjƒ}|j|jƒ|jƒƒ}|dkrLdS|j    |j
ƒƒ|j |ƒdS(N( RêtIPY_GMapServerRunningStateRRtGetGameMapManagertFindR·R¸R©tSetStatetGetStatetSetRefreshTick(R¶R
t mapServerPacktgameMapManagertcurMap((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytMapServer_RunningStateRefreshs   cCs¨tjtj|ƒsdStjƒjƒ}xvtd|jƒƒD]_}|j|ƒ}|j    ƒt
j krqqAn||j ƒtj krqAn|jt
j ƒqAWdS(Ni(RtSetWorldDictKeyR@tTYPE_MapServerRunningStateRRRŒR‹RRRêtmssNonetGetRefreshTicktDef_Tick_MapServer_MssNoneR(R
RR“R((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR|%scCs&tjƒ}|jƒ}t|ƒdS(N(RêtIPY_GMapServerMsgtGetMsgt RunEventFunc(R¶R
R¿Rà((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pytMapServer_MapServerMsgJs  
cCs?d|}tƒj|ƒr*tƒ|ƒStjd|ƒdS(Nt RunEventFunc_s"Error : RunEventFunc funcName = %s(tglobalsthas_keyRR(tfuncName((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyR Vs
 
cCs8tj|ƒtjƒtjdƒtjƒjƒdS(Ns ֪ͨC++¹Ø·þ£¡(RRt OnServerCloseRtSavePlayerLVDataRRR(R
((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyt BeforeCloseds 
 (hRRVR@RRR«RŽRRLRRlR RêRÇRR°RRpRTR!RNRRRt MergeChildMsgRRéRJRbR*RRRbRRRR,R/R2R4R8R:RRHRGRhR\R[RuRtR~R}RzRšR{R¡RyRxRÆRÊRÜRæRØRÚRçRñRÝRwRvRkRRR)RR1RR7RTRiRjRkRR~ReR¦RRR‘RÅRÐR•RÛRÖRæRRöRøRùRRRR|R!R R((((sT.\\ServerPython\CoreServerGroup\GameServer\Script\GameWorldLogic\GameWorldProcess.pyt<module>AsÊ                                         &                                              *             (                    #        \    6                          2    9    
    9    '         ,        .            2        ;        U    %                    +                     
                "         %        %