| | |
| | | def GetSyncDict(self):
|
| | | # Value 暂时只同步1~2
|
| | | syncDict = {"PlayerID":self.GetPlayerID(), "Value1":self.GetValue1(), "Value2":self.GetValue2()}
|
| | | syncDict.update(PlayerViewCache.GetShotCahceDict(self.GetPlayerID(), False))
|
| | | syncDict.update(PlayerViewCache.GetShotCacheDict(self.GetPlayerID(), "PlayerID", "FightPower", "ServerID", "OfflineValue"))
|
| | | return syncDict
|
| | |
|
| | | class PyFuncTeam():
|
| | |
| | | ApplyList = []
|
| | | if applyDetail:
|
| | | for applyID in ApplyIDList[::-1]:
|
| | | applyPlayerDict = PlayerViewCache.GetShotCahceDict(applyID, False)
|
| | | applyPlayerDict = PlayerViewCache.GetShotCacheDict(applyID, "PlayerID", "FightPower", "ServerID")
|
| | | if not applyPlayerDict:
|
| | | ApplyIDList.remove(applyID)
|
| | | else:
|
| | |
| | | if playerID not in funcTeam.GetApplyIDList():
|
| | | continue
|
| | | teamID = funcTeam.GetTeamID()
|
| | | teamInfo = funcTeam.GetSyncDict(False)
|
| | | teamInfo = funcTeam.GetSyncDict(True)
|
| | | sendMsg = {"infoType":"QueryPlayerFuncTeam", "zoneID":zoneID, "playerID":playerID, "funcMapID":funcMapID,
|
| | | "teamInfo":teamInfo, "teamID":teamID, "syncPlayerIDList":syncPlayerIDList}
|
| | | CrossRealmMsg.SendMsgToClientServer(ShareDefine.CrossServerMsg_FuncTeamInfo, sendMsg, serverGroupList)
|