| | |
| | | import GMShell
|
| | |
|
| | | import traceback
|
| | | import json
|
| | |
|
| | | def SendMsgToCrossServer(msgType, dataMsg):
|
| | | ## 发送信息到跨服服务器上
|
| | |
| | | GameWorld.GetGameWorld().SendBroadcastMergeClient(sendMsg)
|
| | | else:
|
| | | serverGroupIDList = list(set(serverGroupIDList)) # 去重
|
| | | for serverGroupID in serverGroupIDList:
|
| | | GameWorld.GetGameWorld().SendMergeMsgToClientByGroupID(serverGroupID, sendMsg)
|
| | | #for serverGroupID in serverGroupIDList:
|
| | | # GameWorld.GetGameWorld().SendMergeMsgToClientByGroupID(serverGroupID, sendMsg)
|
| | | jsonGroupIDInfo = json.dumps(serverGroupIDList, ensure_ascii=False)
|
| | | GameWorld.GetGameWorld().SendMergeMsgToClientByGroupList(jsonGroupIDInfo, sendMsg)
|
| | | return
|
| | |
|
| | | def OnClientServerReceiveMsg(index, tick):
|