From fd93f642cccc4865d1f824137ee3a7faf3ddec61 Mon Sep 17 00:00:00 2001
From: client_Zxw <826696702@qq.com>
Date: 星期二, 25 十二月 2018 16:45:19 +0800
Subject: [PATCH] 5398 子 【开发】【1.4】跨服竞技场 / 【前端】【1.4】跨服竞技场开发
---
System/MainInterfacePanel/PlayerBuffDatas.cs | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/System/MainInterfacePanel/PlayerBuffDatas.cs b/System/MainInterfacePanel/PlayerBuffDatas.cs
index 4463c44..36982c9 100644
--- a/System/MainInterfacePanel/PlayerBuffDatas.cs
+++ b/System/MainInterfacePanel/PlayerBuffDatas.cs
@@ -27,6 +27,7 @@
public static event OnObjAddBuff Even_ObjAddBuf;//鍏充簬Buff鐨勫鍔�
public delegate void OnObjDelBuff();
public static event OnObjDelBuff Even_ObjDelBuff;//鍏充簬Buff鐨勫噺灏�
+ public static event Action<int> BuffUpdateEvent;//buff鐘舵�佹敼鍙�
public Dictionary<int, ObjBuff> _BuffDic = new Dictionary<int, ObjBuff>();//buff瀛楀吀
VipModel m_VipModel;
VipModel vipModel { get { return m_VipModel ?? (m_VipModel = ModelCenter.Instance.GetModel<VipModel>()); } }
@@ -273,6 +274,10 @@
_ObjBuff.Layer = (int)info.Layer;
_BuffDic.Add((int)info.SkillID, _ObjBuff);
}
+ if (BuffUpdateEvent != null)
+ {
+ BuffUpdateEvent((int)info.ObjID);
+ }
if (Even_ObjAddBuf != null)
Even_ObjAddBuf();
}
@@ -284,6 +289,10 @@
{
return;
}
+ if (BuffUpdateEvent != null)
+ {
+ BuffUpdateEvent(playerId);
+ }
if (_BuffDic.ContainsKey(_BuffID))
{
_BuffDic.Remove(_BuffID);
--
Gitblit v1.8.0