From 55902407d2584d0e1698a6062e314f2e3582acc6 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期一, 25 二月 2019 19:53:36 +0800
Subject: [PATCH] 3335 去除未使用的玩家数据字段。
---
Core/GameEngine/Model/Player/Character/PlayerBaseData.cs | 55 +++++++++++++++++--------------------------------------
1 files changed, 17 insertions(+), 38 deletions(-)
diff --git a/Core/GameEngine/Model/Player/Character/PlayerBaseData.cs b/Core/GameEngine/Model/Player/Character/PlayerBaseData.cs
index 64ccc10..fa0c470 100644
--- a/Core/GameEngine/Model/Player/Character/PlayerBaseData.cs
+++ b/Core/GameEngine/Model/Player/Character/PlayerBaseData.cs
@@ -5,29 +5,22 @@
public string AccID; //_KEY_i_甯愬彿鍚�, 璇ヨ鑹叉墍鍦ㄧ殑甯愬彿鐨勭敤鎴峰悕
public uint PlayerID; //_IDT_
public string PlayerName; //size = 14
- public byte AccState; //0: 鏈垱寤�, 1: 鍒涘缓OK,姝e父鐧诲綍 2:灏佸彿 3:宸插垹闄�
public byte GMLevel; //GM绛夌骇, 0:涓嶆槸GM >=1 : GM鐨勭瓑绾�
- public byte Sex; //鎬у埆
public byte Job; //鑱屼笟,
public ushort LV; //绛夌骇
- public ushort LVEx; //鐜╁绛夌骇鍓湰锛岀敤浜庤浆鐢�
- public ushort LV2; //澶у笀绛夌骇
public uint ExpPoint; //鎵╁厖缁忛獙鐐规暟
public uint TotalExp; //鎬荤粡楠�
- public uint Family; //瀹舵棌
+ public uint FamilyId; //瀹舵棌
public string FamilyName; //瀹舵棌鍚嶇О
- public uint Gold; //浠欑帀
- public uint GoldPaper; //缁戠帀
- public uint Silver; //閾滈挶
- public uint SilverPaper; //閾剁エ
+ public uint diamond; //浠欑帀
+ public uint bindDiamond; //缁戠帀
+ public uint copper; //閾滈挶
+ public ulong allCopper { get { return (ulong)copper + (ulong)ExAttr6 * 100000000; } }
public uint FightPoint; //鎴樻枟鍊�
- public uint OffLineHangTime;//鑴辨満澶栨寕鏃堕棿
public ushort MapID; //瑙掕壊鎵�鍦ㄥ湴鍥�
public ushort PosX; //瑙掕壊鍧愭爣
public ushort PosY;
- public byte State; //瑙掕壊鐘舵�� 1.灏佸瓨 2.姝讳骸 3.姝e父 浠ュ悗杩樻湁闄嗙画娣诲姞
public uint HP; //褰撳墠HP
- public uint XP; //褰撳墠XP
public uint FreePoint; //鏈垎閰嶇偣鏁�
public uint FreeSkillPoint; //鏈垎閰嶇殑鎶�鑳界偣
public int STR; //鍔涢噺
@@ -53,7 +46,7 @@
public uint ExAttr12; //棰勭暀鐨勬墿灞曞睘鎬у瓧娈碉紝鐢ㄦ潵瀛樻斁椤圭洰鐗瑰畾鐨勫睘鎬�
public uint ServerGroupId; //鏈嶅姟鍣ㄧ粍ID
public uint ExAttr14; //棰勭暀鐨勬墿灞曞睘鎬у瓧娈碉紝鐢ㄦ潵瀛樻斁椤圭洰鐗瑰畾鐨勫睘鎬�
- public uint HappyPoint;//鐜颁负鑴辨満鎸傚墿浣欐椂闂� 23
+ public uint hangTime;//鐜颁负鑴辨満鎸傚墿浣欐椂闂� 23
public uint faction; //闃佃惀 107
public uint coinPointTotal;//宸插厖鍊奸噾棰濓紝鍗曚綅鍒� 112
@@ -76,8 +69,6 @@
public int godWeaponLV_3;
public int godWeaponLV_4;
- public ulong allSliver { get { return (ulong)Silver + (ulong)ExAttr6 * 100000000; } }
-
public void UpdateData(H0102_tagCDBPlayer _serverInfo)
{
if (_serverInfo.socketType == ServerType.Main)
@@ -85,27 +76,20 @@
AccID = _serverInfo.AccID;
PlayerID = _serverInfo.PlayerID;
PlayerName = _serverInfo.PlayerName.Trim().Replace(" ", "");
- AccState = _serverInfo.AccState;
GMLevel = _serverInfo.GMLevel;
- Sex = _serverInfo.Sex;
Job = _serverInfo.Job;
LV = _serverInfo.LV;
- LVEx = _serverInfo.LVEx;
- LV2 = _serverInfo.LV2;
ExpPoint = _serverInfo.ExpPoint;
TotalExp = _serverInfo.TotalExp;
- Family = _serverInfo.Family;
+ FamilyId = _serverInfo.Family;
FamilyName = _serverInfo.FamilyName.Trim().Replace(" ", "");
- Gold = _serverInfo.Gold;
- GoldPaper = _serverInfo.GoldPaper;
- Silver = _serverInfo.Silver;
- SilverPaper = _serverInfo.SilverPaper;
+ diamond = _serverInfo.Gold;
+ bindDiamond = _serverInfo.GoldPaper;
+ copper = _serverInfo.Silver;
MapID = _serverInfo.MapID;
mainServerMapIdRecord = MapID;
PosX = _serverInfo.PosX;
PosY = _serverInfo.PosY;
- State = _serverInfo.State;
- XP = _serverInfo.XP;
FreePoint = _serverInfo.FreePoint;
FreeSkillPoint = _serverInfo.FreeSkillPoint;
STR = _serverInfo.STR;
@@ -130,7 +114,7 @@
ExAttr12 = _serverInfo.ExAttr12;
ServerGroupId = _serverInfo.ExAttr13;
ExAttr14 = _serverInfo.ExAttr14;
- HappyPoint = _serverInfo.HappyPoint;
+ hangTime = _serverInfo.HappyPoint;
faction = _serverInfo.Faction;
coinPointTotal = _serverInfo.ChangeCoinPointTotal;
equipShowSwitch = _serverInfo.EquipShowSwitch;
@@ -165,7 +149,7 @@
if (PlayerDatas.Instance.hero != null)
{
- PlayerDatas.Instance.hero.ActorInfo.familyID = Family;
+ PlayerDatas.Instance.hero.ActorInfo.familyID = FamilyId;
if (CrossServerUtility.IsCrossServer())
{
if (_serverInfo.socketType == ServerType.CrossSever)
@@ -186,21 +170,16 @@
AccID = serverInfo.AccID;
PlayerID = serverInfo.PlayerID;
PlayerName = serverInfo.PlayerName.Trim().Replace(" ", "");
- AccState = serverInfo.AccState;
GMLevel = serverInfo.GMLevel;
- Sex = serverInfo.Sex;
Job = serverInfo.Job;
LV = serverInfo.LV;
- LVEx = serverInfo.LVEx;
- LV2 = serverInfo.LV2;
ExpPoint = serverInfo.ExpPoint;
TotalExp = serverInfo.TotalExp;
- Family = serverInfo.Family;
+ FamilyId = serverInfo.Family;
FamilyName = serverInfo.FamilyName.Trim().Replace(" ", "");
- Gold = serverInfo.Gold;
- GoldPaper = serverInfo.GoldPaper;
- Silver = serverInfo.Silver;
- SilverPaper = serverInfo.SilverPaper;
+ diamond = serverInfo.Gold;
+ bindDiamond = serverInfo.GoldPaper;
+ copper = serverInfo.Silver;
MapID = serverInfo.MapID;
if (serverInfo.socketType == ServerType.Main)
{
@@ -234,7 +213,7 @@
ExAttr12 = serverInfo.ExAttr12;
ServerGroupId = serverInfo.ExAttr13;
ExAttr14 = serverInfo.ExAttr14;
- HappyPoint = serverInfo.HappyPoint;
+ hangTime = serverInfo.HappyPoint;
faction = serverInfo.Faction;
coinPointTotal = serverInfo.ChangeCoinPointTotal;
godWeaponLV_1 = (int)serverInfo.ExAttr15;
--
Gitblit v1.8.0