| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using LitJson;
|
| | | using UnityEngine;
|
| | |
|
| | | // 支持分页查询排行榜, 本服/跨服统一使用 参考QueryRankByPage 新封包 DTCA130_tagMCViewBillboardRet
|
| | |
| | | data.cmpValue2 = serverData.CmpValue2;
|
| | | data.cmpValue3 = serverData.CmpValue3;
|
| | | data.userData = serverData.UserData;
|
| | |
|
| | | var userData = JsonMapper.ToObject(serverData.UserData);
|
| | | if (userData.ContainsKey("FightPower"))
|
| | | {
|
| | | long.TryParse(userData["FightPower"].ToString(), out data.fightPower);
|
| | | }
|
| | | |
| | | data.rank = serverData.Rank;
|
| | | data.type = type;
|
| | | data.index = serverData.Index;
|
| | |
| | | data.cmpValue2 = serverData.CmpValue2;
|
| | | data.cmpValue3 = serverData.CmpValue3;
|
| | | data.userData = serverData.UserData;
|
| | |
|
| | | var userData = JsonMapper.ToObject(serverData.UserData);
|
| | | if (userData.ContainsKey("FightPower"))
|
| | | {
|
| | | long.TryParse(userData["FightPower"].ToString(), out data.fightPower);
|
| | | }
|
| | | |
| | | data.rank = serverData.Rank;
|
| | | data.index = serverData.Index;
|
| | | data.type = type; //与服务端一致的跨服排行榜类型,外部自行处理不同分组分赛季等情况
|
| | |
| | | public uint cmpValue2;
|
| | | public uint cmpValue3;
|
| | | public string userData;
|
| | | public long fightPower;
|
| | | public int rank; // 排名从1开始,代表第1名
|
| | | public int index; //数据在榜单列表中的索引,从0开始 非排名 分页查询会用到
|
| | | }
|