| | |
| | | syncCoupleInfo = {}
|
| | | if syncPlayerIDList == None:
|
| | | syncPlayerIDList = self.coupleIDDict.keys()
|
| | | # 分批同步,子服长度不能超过 65535,每批暂定最大同步1000个
|
| | | for playerID in syncPlayerIDList:
|
| | | couple = self.GetCouple(playerID)
|
| | | if not couple:
|
| | | syncCoupleInfo[playerID] = []
|
| | | else:
|
| | | syncCoupleInfo[playerID] = couple.GetSendMapServerCoupleInfo(playerID)
|
| | | if len(syncCoupleInfo) >= 1000:
|
| | | GameWorld.SendMapServerMsgEx(ShareDefine.Def_Notify_WorldKey_CoupleInfo, syncCoupleInfo)
|
| | | syncCoupleInfo = {}
|
| | | if not syncCoupleInfo:
|
| | | return
|
| | | GameWorld.SendMapServerMsgEx(ShareDefine.Def_Notify_WorldKey_CoupleInfo, syncCoupleInfo)
|
| | | return
|
| | |
|