| | |
| | | using System; |
| | | using Cysharp.Threading.Tasks; |
| | | |
| | | public class PlayerBaseData |
| | | { |
| | |
| | | public uint ExpPoint; //扩充经验点数(亿) |
| | | public uint TotalExp; //总经验(小于亿部分) |
| | | public long curExp { get { return TotalExp + ExpPoint * Constants.ExpPointValue; } } |
| | | public uint FamilyId; //家族 |
| | | |
| | | uint m_FamilyId; |
| | | public uint FamilyId |
| | | { |
| | | get |
| | | { |
| | | return m_FamilyId; |
| | | } |
| | | set |
| | | { |
| | | var beforeFamilyId = m_FamilyId; |
| | | m_FamilyId = value; |
| | | if (beforeFamilyId == 0 && m_FamilyId != 0) |
| | | { |
| | | GuildManager.Instance.AfterEnterGuild().Forget(); |
| | | } |
| | | else if (beforeFamilyId != 0 && m_FamilyId == 0) |
| | | { |
| | | GuildManager.Instance.AfterQuitGuild(); |
| | | } |
| | | } |
| | | } |
| | | public string FamilyName; //家族名称 |
| | | public uint diamond; //仙玉 |
| | | public uint bindDiamond; //灵石 |
| | |
| | | public uint copperExtend; //扩展属性6,各项目专用 |
| | | public uint sp; //扩展属性7,各项目专用 |
| | | public uint spExtend; //扩展属性8,各项目专用 |
| | | public uint bubbleId; //扩展属性10,各项目专用 |
| | | public uint chatBox; //扩展属性10,各项目专用 |
| | | public uint ExAttr11; //预留的扩展属性字段,用来存放项目特定的属性121 现金代币(代金券) |
| | | public uint ExAttr16; //预留的扩展属性字段,用来存放项目特定的属性 全身特效 |
| | | public uint ServerGroupId; //服务器组ID |
| | |
| | | public int face;//头像 |
| | | public int facePic;//头像外框 |
| | | public long FightPower; //战斗力 |
| | | |
| | | public int modelMark; //形象 |
| | | public uint coinPointTotal |
| | | { |
| | | private get { return m_coinPointTotal; } |
| | |
| | | public int BasicsDefense;//基础防御 |
| | | public int BasicsScoreAHit;//基础命中 |
| | | public int BasicsDodge;//基础闪避 |
| | | public uint equipShowSwitch;//装备显隐开关 |
| | | public uint equipShowSwitch;//当前配置的坐骑外观ID存储在(最大支持 1~999) |
| | | public int mater;//灵根属性——金 |
| | | public int wood;//灵根属性——木 |
| | | public int water;//灵根属性——水 |
| | |
| | | |
| | | public int mapRealmSelect; //地图境界难度 |
| | | public int leaveFamilyTime; //离开家族时间 |
| | | public int leaveGuildInfo; //公会:主动离开次数*100 + 被踢次数*10 + 最后一次是否主动离开的,暂时最多累计记录到9次 |
| | | |
| | | public bool IsActive90Off = true; //代表默认激活0.1折 |
| | | public long treasurePotentialSp |
| | |
| | | copperExtend = _serverInfo.ExAttr6; |
| | | sp = _serverInfo.ExAttr7; |
| | | spExtend = _serverInfo.ExAttr8; |
| | | bubbleId = _serverInfo.ExAttr10; |
| | | ExAttr11 = _serverInfo.ExAttr11; |
| | | leaveGuildInfo = (int)_serverInfo.ExAttr12; |
| | | ExAttr16 = _serverInfo.ExAttr16; |
| | | ServerGroupId = _serverInfo.ExAttr13; |
| | | faction = _serverInfo.Faction; |
| | |
| | | equipShowSwitch = _serverInfo.EquipShowSwitch; |
| | | mapRealmSelect = (int)_serverInfo.ExAttr18; |
| | | leaveFamilyTime = (int)_serverInfo.ExAttr19; |
| | | face = (int)_serverInfo.Face; |
| | | facePic = (int)_serverInfo.FacePic; |
| | | |
| | | HP = _serverInfo.HP + _serverInfo.HPEx * Constants.ExpPointValue; |
| | | AttackMode = _serverInfo.AttackMode; |
| | | UseHarmerCount = (int)_serverInfo.FightPoint; //锤子倍数,非战斗力 |
| | | face = (int)_serverInfo.Face; |
| | | facePic = (int)_serverInfo.FacePic; |
| | | modelMark = (int)_serverInfo.ModelMark; |
| | | chatBox = (uint)_serverInfo.ExAttr10; |
| | | TitleID = (int)_serverInfo.ExAttr3; |
| | | |
| | | } |
| | | |