From 1c2fcff0e2c241b5db715cbb413cdbb281e3a0e5 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期四, 17 一月 2019 20:46:53 +0800
Subject: [PATCH] 2899 更新跨服pvp战斗结果封包

---
 Core/NetworkPackage/ServerPack/HC0_CrossRealm/HC003_tagGCCrossRealmPKOverInfo.cs |   77 ++++++++++++++++++++------------------
 System/CrossServerOneVsOne/CrossServerOneVsOnePkResult.cs                        |    2 
 2 files changed, 41 insertions(+), 38 deletions(-)

diff --git a/Core/NetworkPackage/ServerPack/HC0_CrossRealm/HC003_tagGCCrossRealmPKOverInfo.cs b/Core/NetworkPackage/ServerPack/HC0_CrossRealm/HC003_tagGCCrossRealmPKOverInfo.cs
index 12fd572..8c908bc 100644
--- a/Core/NetworkPackage/ServerPack/HC0_CrossRealm/HC003_tagGCCrossRealmPKOverInfo.cs
+++ b/Core/NetworkPackage/ServerPack/HC0_CrossRealm/HC003_tagGCCrossRealmPKOverInfo.cs
@@ -1,37 +1,40 @@
-using UnityEngine;
-using System.Collections;
-
-// C0 03 跨服PK战斗结果 #tagGCCrossRealmPKOverInfo

-

-public class HC003_tagGCCrossRealmPKOverInfo : GameNetPackBasic {

-    public string TimeStr;    // 结算时间,格式 yyyy-MM-dd HH:mm:ss

-    public byte OverType;    // 0-正常,1-有人离线

-    public uint WinnerID;    // 胜方ID

-    public byte RoundCount;    // PK回合数

-    public  uint[] RoundWinnerID;    // 回合获胜ID列表

-    public ushort AddScore;    // 本场加分

-    public ushort Score;    // 当前积分

-    public byte DanLV;    // 当前段位

-    public ushort CWinCnt;    // 当前连胜数

-    public byte TagNameLen;

-    public string TagName;

-

-    public HC003_tagGCCrossRealmPKOverInfo () {

-        _cmd = (ushort)0xC003;

-    }

-

-    public override void ReadFromBytes (byte[] vBytes) {

-        TransBytes (out TimeStr, vBytes, NetDataType.Chars, 19);

-        TransBytes (out OverType, vBytes, NetDataType.BYTE);

-        TransBytes (out WinnerID, vBytes, NetDataType.DWORD);

-        TransBytes (out RoundCount, vBytes, NetDataType.BYTE);

-        TransBytes (out RoundWinnerID, vBytes, NetDataType.DWORD, RoundCount);

-        TransBytes (out AddScore, vBytes, NetDataType.WORD);

-        TransBytes (out Score, vBytes, NetDataType.WORD);

-        TransBytes (out DanLV, vBytes, NetDataType.BYTE);

-        TransBytes (out CWinCnt, vBytes, NetDataType.WORD);

-        TransBytes (out TagNameLen, vBytes, NetDataType.BYTE);

-        TransBytes (out TagName, vBytes, NetDataType.Chars, TagNameLen);

-    }

-

-}

+using UnityEngine;
+using System.Collections;
+
+// C0 03 跨服PK战斗结果 #tagGCCrossRealmPKOverInfo
+
+public class HC003_tagGCCrossRealmPKOverInfo : GameNetPackBasic
+{
+    public string TimeStr;    // 结算时间,格式 yyyy-MM-dd HH:mm:ss
+    public byte OverType;    // 0-正常,1-有人离线
+    public uint WinnerID;    // 胜方ID
+    public byte RoundCount;    // PK回合数
+    public uint[] RoundWinnerID;    // 回合获胜ID列表
+    public ushort AddScore;    // 本场加分
+    public uint Score;    // 当前积分
+    public byte DanLV;    // 当前段位
+    public ushort CWinCnt;    // 当前连胜数
+    public byte TagNameLen;
+    public string TagName;
+
+    public HC003_tagGCCrossRealmPKOverInfo()
+    {
+        _cmd = (ushort)0xC003;
+    }
+
+    public override void ReadFromBytes(byte[] vBytes)
+    {
+        TransBytes(out TimeStr, vBytes, NetDataType.Chars, 19);
+        TransBytes(out OverType, vBytes, NetDataType.BYTE);
+        TransBytes(out WinnerID, vBytes, NetDataType.DWORD);
+        TransBytes(out RoundCount, vBytes, NetDataType.BYTE);
+        TransBytes(out RoundWinnerID, vBytes, NetDataType.DWORD, RoundCount);
+        TransBytes(out AddScore, vBytes, NetDataType.WORD);
+        TransBytes(out Score, vBytes, NetDataType.DWORD);
+        TransBytes(out DanLV, vBytes, NetDataType.BYTE);
+        TransBytes(out CWinCnt, vBytes, NetDataType.WORD);
+        TransBytes(out TagNameLen, vBytes, NetDataType.BYTE);
+        TransBytes(out TagName, vBytes, NetDataType.Chars, TagNameLen);
+    }
+
+}
\ No newline at end of file
diff --git a/System/CrossServerOneVsOne/CrossServerOneVsOnePkResult.cs b/System/CrossServerOneVsOne/CrossServerOneVsOnePkResult.cs
index 7a60a6a..674b22e 100644
--- a/System/CrossServerOneVsOne/CrossServerOneVsOnePkResult.cs
+++ b/System/CrossServerOneVsOne/CrossServerOneVsOnePkResult.cs
@@ -38,7 +38,7 @@
             this.RoundCount = pKOverInfo.RoundCount;
             this.RoundWinnerIDs = pKOverInfo.RoundWinnerID;
             this.AddScore = pKOverInfo.AddScore;
-            this.CurScore = pKOverInfo.Score;
+            this.CurScore = (int)pKOverInfo.Score;
             this.DanLV = pKOverInfo.DanLV;
             this.WinStreak = pKOverInfo.CWinCnt;
             this.VsPlayerName = pKOverInfo.TagName;

--
Gitblit v1.8.0