From 921ba9c6e954f2f1377cb08d5a8476c9e6c2b30e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 15 三月 2019 17:44:27 +0800
Subject: [PATCH] 6332 【后端】【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