From 8de6a6994a0dd623514899310e415269d42e4685 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 20 三月 2019 16:11:59 +0800
Subject: [PATCH] 6382 【后端】【2.0】功能是否绑定及拍品优化调整(部分绑定修改为是否拍品)
---
ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py | 30 +++++++++++++++++-------------
1 files changed, 17 insertions(+), 13 deletions(-)
diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
index 624de77..5a3ba64 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerSocial.py
@@ -26,7 +26,6 @@
import IpyGameDataPY
import PlayerViewCache
import PyGameData
-
#--------------------社交圈基本结构-------------------
# 社交圈
class SocialPlayers(object):
@@ -98,6 +97,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 +190,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