From f37fe3b1d7b81b2dcdaeeb81971a6cbdf0b9372d Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期五, 19 四月 2019 20:24:51 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py
index e900609..b0efe21 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py
@@ -52,6 +52,11 @@
     curPlayer.NotifyCode(msgMark, __GetNotifyCodeList(msgParamList))
     return
 
+def CrossNotifyCode(serverGroupID, playerID, msgMark, msgParamList=[]):
+    crossNotifyList = [{"Type":ShareDefine.CrossNotify_Player, "Params":[playerID, msgMark, msgParamList]}]
+    CrossNotify([serverGroupID], crossNotifyList)
+    return
+
 def GetCrossWorldNotifyInfo(country, msgMark, msgParamList=[]):
     return {"Type":ShareDefine.CrossNotify_World, "Params":[country, msgMark, msgParamList]}
 
@@ -79,7 +84,11 @@
         elif notifyType == ShareDefine.CrossNotify_Family:
             familyID, msgMark, msgParamList = params
             FamilyNotify(familyID, msgMark, msgParamList)
-            
+        elif notifyType == ShareDefine.CrossNotify_Player:
+            playerID, msgMark, msgParamList = params
+            curPlayer = GameWorld.GetPlayerManager().FindPlayerByID(playerID)
+            if curPlayer:
+                NotifyCode(curPlayer, msgMark, msgParamList)
     return
     
 ## 世界广播

--
Gitblit v1.8.0