From 744c8057407d9ed7808d3bb5967952e3cccc3721 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期日, 19 一月 2020 21:07:11 +0800
Subject: [PATCH] 0312 升级界面增加 “直升X级” 不超过2位
---
Core/GameEngine/Model/Player/PlayerDatas.cs | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/Core/GameEngine/Model/Player/PlayerDatas.cs b/Core/GameEngine/Model/Player/PlayerDatas.cs
index a47b0e1..c580eaa 100644
--- a/Core/GameEngine/Model/Player/PlayerDatas.cs
+++ b/Core/GameEngine/Model/Player/PlayerDatas.cs
@@ -40,6 +40,8 @@
public event Action<PlayerDataType, int> attributePromoteEvent;
public event Action<long> spNewGetEvent;
+ public event Action<uint> playerLVUpdateEvent;
+
private Dictionary<PlayerDataType, int> PlayerDataDict = new Dictionary<PlayerDataType, int>();
public void InitPlayerData(H0102_tagCDBPlayer data)
@@ -250,6 +252,8 @@
}
}
+ if (playerLVUpdateEvent != null)
+ playerLVUpdateEvent(value - baseData.LV);
baseData.LV = (ushort)value;
break;
case PlayerDataType.TotalExp:
--
Gitblit v1.8.0