| | |
| | | public string AccID; //_KEY_i_帐号名, 该角色所在的帐号的用户名
|
| | | public uint PlayerID; //_IDT_
|
| | | public string PlayerName; //size = 14
|
| | | public byte AccState; //0: 未创建, 1: 创建OK,正常登录 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.正常 以后还有陆续添加
|
| | | public uint HP; //当前HP
|
| | | public uint XP; //当前XP
|
| | | public uint FreePoint; //未分配点数
|
| | | public uint FreeSkillPoint; //未分配的技能点
|
| | | public int STR; //力量
|
| | |
| | | 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
|
| | |
|
| | |
| | | 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)
|
| | |
| | | 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;
|
| | |
| | | ExAttr12 = _serverInfo.ExAttr12;
|
| | | ServerGroupId = _serverInfo.ExAttr13;
|
| | | ExAttr14 = _serverInfo.ExAttr14;
|
| | | HappyPoint = _serverInfo.HappyPoint;
|
| | | hangTime = _serverInfo.HappyPoint;
|
| | | faction = _serverInfo.Faction;
|
| | | coinPointTotal = _serverInfo.ChangeCoinPointTotal;
|
| | | equipShowSwitch = _serverInfo.EquipShowSwitch;
|
| | |
| | |
|
| | | 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)
|
| | |
| | | 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)
|
| | | {
|
| | |
| | | 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;
|