From 9ce4c3181bdc05f17069eb023be220176723065b Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期二, 23 十月 2018 19:28:35 +0800 Subject: [PATCH] 860312 注释加好友触发任务和成就,若开启可根据具体情况开发,如直接通知好友总数 --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py | 27 +++++++++++++++------------ 1 files changed, 15 insertions(+), 12 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py index 624de77..0387fdf 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py @@ -189,18 +189,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