From c67589d9f19e98d24e7459bcbfdcd60b340c0a4b Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 17 一月 2019 00:34:18 +0800
Subject: [PATCH] 5722 【后端】【1.5】跨服BOSS开发(跨服掉落好物品同步到本分区所有服务器)

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py |   29 +++++++++++++++++------------
 1 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
index 624de77..744608c 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
@@ -99,6 +99,8 @@
     def GetCount(self):
         return len(self.SocialDict)
     
+    def GetSocialIDList(self): return self.SocialDict.keys()
+    
     def Find(self, tagID):
         return self.SocialDict.get(tagID, None)
     
@@ -189,18 +191,21 @@
     
     # 通知地图好友信息
     def MapServer_SyncFriendInfo(self, curPlayer):
-        if not curPlayer:
-            return
-        sendPack = ChGameToMapPyPack.tagGMFriendInfo() 
-        sendPack.PlayerID = curPlayer.GetPlayerID()
-        sendPack.FriendCnt = self.GetCount()
-        sendPack.Friends = []
-        
-        for friendInfo in self.SocialDict.values():
-            playerFriend = ChGameToMapPyPack.tagGMPlayerFrendInfo()
-            playerFriend.TagID = friendInfo.PlayerID
-            sendPack.Friends.append(playerFriend)
-        NetPackCommon.SendPyPackToMapServer(curPlayer.GetLineNO(), curPlayer.GetRealMapID(), sendPack) 
+        return
+        #=======================================================================
+        # if not curPlayer:
+        #    return
+        # sendPack = ChGameToMapPyPack.tagGMFriendInfo() 
+        # sendPack.PlayerID = curPlayer.GetPlayerID()
+        # sendPack.FriendCnt = self.GetCount()
+        # sendPack.Friends = []
+        # 
+        # for friendInfo in self.SocialDict.values():
+        #    playerFriend = ChGameToMapPyPack.tagGMPlayerFrendInfo()
+        #    playerFriend.TagID = friendInfo.TagID
+        #    sendPack.Friends.append(playerFriend)
+        # NetPackCommon.SendPyPackToMapServer(curPlayer.GetLineNO(), curPlayer.GetRealMapID(), sendPack) 
+        #=======================================================================
     
 
 # 整个游戏的好友管理

--
Gitblit v1.8.0