From b8310c9ce5f1d7fec2075d81ac7f2c5bbdeee863 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期五, 21 十二月 2018 11:09:14 +0800
Subject: [PATCH] 5398 子 【开发】【1.4】跨服竞技场 / 【前端】【1.4】跨服竞技场开发
---
Core/GameEngine/Model/Player/Character/PlayerBaseData.cs | 40 ++++++++++++++++++++++++++++++++--------
1 files changed, 32 insertions(+), 8 deletions(-)
diff --git a/Core/GameEngine/Model/Player/Character/PlayerBaseData.cs b/Core/GameEngine/Model/Player/Character/PlayerBaseData.cs
index fc02dfd..0b42855 100644
--- a/Core/GameEngine/Model/Player/Character/PlayerBaseData.cs
+++ b/Core/GameEngine/Model/Player/Character/PlayerBaseData.cs
@@ -1,6 +1,8 @@
锘縫ublic class PlayerBaseData
{
+ PartDataBuf mainServerDataBuf = new PartDataBuf();//
+
public string AccID; //_KEY_i_甯愬彿鍚�, 璇ヨ鑹叉墍鍦ㄧ殑甯愬彿鐨勭敤鎴峰悕
public uint PlayerID; //_IDT_
public string PlayerName; //size = 14
@@ -133,17 +135,39 @@
godWeaponLV_2 = (int)_serverInfo.ExAttr16;
godWeaponLV_3 = (int)_serverInfo.ExAttr17;
godWeaponLV_4 = (int)_serverInfo.ExAttr18;
+
+ if (_serverInfo.socketType == GameNetSystem.SocketType.Main)
+ {
+ mainServerDataBuf.PlayerName = PlayerName;
+ mainServerDataBuf.MapID = MapID;
+ mainServerDataBuf.FBID = FBID;
+ mainServerDataBuf.dungeonLineId = dungeonLineId;
+ mainServerDataBuf.PosX = PosX;
+ mainServerDataBuf.PosY = PosY;
+ mainServerDataBuf.HP = HP;
+ }
}
- public void UpdateData(HC103_tagMCExitCrossRealmRefresh serverInfo)
+ public void ApplyMainServerDataBuf()
{
- PlayerName = serverInfo.PlayerName;
- MapID = serverInfo.MapID;
- FBID = serverInfo.FBID;
- dungeonLineId = serverInfo.FuncLineID;
- PosX = serverInfo.PosX;
- PosY = serverInfo.PosY;
- HP = serverInfo.HP;
+ PlayerName = mainServerDataBuf.PlayerName;
+ MapID = mainServerDataBuf.MapID;
+ FBID = mainServerDataBuf.FBID;
+ dungeonLineId = mainServerDataBuf.dungeonLineId;
+ PosX = mainServerDataBuf.PosX;
+ PosY = mainServerDataBuf.PosY;
+ HP = mainServerDataBuf.HP;
+ }
+
+ public class PartDataBuf
+ {
+ public string PlayerName;
+ public ushort MapID;
+ public byte FBID;
+ public int dungeonLineId;
+ public ushort PosX;
+ public ushort PosY;
+ public uint HP;
}
}
--
Gitblit v1.8.0