10349 【越南】【英文】【BT】【砍树】跨服竞技场优化 - 跨服竞技场和跨服排位赛显示玩家区服,机器人默认用本服区服,排位赛膜拜增加区服显示
| | |
| | | TransBytes (out MatchPlayer[i].FacePic, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MatchPlayer[i].FightPower, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MatchPlayer[i].FightPowerEx, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out MatchPlayer[i].ServerID, vBytes, NetDataType.DWORD);
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | public uint FacePic; //头像框
|
| | | public uint FightPower; //战力,求余亿部分
|
| | | public uint FightPowerEx; //战力,整除亿部分
|
| | | public uint ServerID;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | TransBytes (out PlayerList[i].RealmLV, vBytes, NetDataType.WORD);
|
| | | TransBytes (out PlayerList[i].Face, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out PlayerList[i].FacePic, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out PlayerList[i].ServerID, vBytes, NetDataType.DWORD);
|
| | | }
|
| | | TransBytes (out GroupCount, vBytes, NetDataType.WORD);
|
| | | GroupList = new tagGCCrossChampionshipPKGroup[GroupCount];
|
| | |
| | | public ushort RealmLV;
|
| | | public uint Face; //基本脸型
|
| | | public uint FacePic; //头像框
|
| | | public uint ServerID;
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | // realmImg.SetSprite(realmConfig.Img); |
| | | // } |
| | | //} |
| | | playerName.text = StringUtility.Contact(viewPlayerData.rolePropData.Name, "Lv. ", viewPlayerData.rolePropData.LV); |
| | | string serverName = ServerListCenter.Instance.GetServerName(UIHelper.GetServerIDByAccount(viewPlayerData.rolePropData.AccID)); |
| | | playerName.text = StringUtility.Contact(Language.Get("Z2002", serverName), viewPlayerData.rolePropData.Name);//, "Lv. ", viewPlayerData.rolePropData.LV); |
| | | |
| | | if (viewPlayerData.rolePropData.FamilyID == 0) |
| | | { |
| | |
| | | for (int i = 0; i < netPack.PlayerList.Length; i++) |
| | | { |
| | | var player = netPack.PlayerList[i]; |
| | | string serverName = ServerListCenter.Instance.GetServerName((int)player.ServerID); |
| | | fightersInfo[player.PlayerID] = new CrossChampionshipPKPlayer() |
| | | { |
| | | PlayerID = player.PlayerID, |
| | | PlayerName = player.PlayerName, |
| | | PlayerName = StringUtility.Contact(Language.Get("Z2002", serverName), player.PlayerName), |
| | | FightPower = (long)player.FightPowerEx * (long)Constants.ExpPointValue + player.FightPower, |
| | | Job = player.Job, |
| | | LV = player.LV, |
| | | Face = player.Face, |
| | | FacePic = player.FacePic, |
| | | RealmLV = player.RealmLV, |
| | | ServerID = (int)player.ServerID, |
| | | }; |
| | | } |
| | | |
| | |
| | | public ushort RealmLV; |
| | | public uint Face; //基本脸型 |
| | | public uint FacePic; //头像框 |
| | | public int ServerID; |
| | | } |
| | | |
| | | public struct CrossChampionshipPKBattle |
| | |
| | | int playerID = (int)package.MatchPlayer[i].PlayerID;
|
| | | if (playerID > 10000)
|
| | | {
|
| | | string serverName = ServerListCenter.Instance.GetServerName((int)package.MatchPlayer[i].ServerID);
|
| | | package.MatchPlayer[i].PlayerName = StringUtility.Contact(Language.Get("Z2002", serverName), package.MatchPlayer[i].PlayerName);
|
| | | matchPlayers.Add(package.MatchPlayer[i]);
|
| | | //服务端没有主动推送的话,这里需要请求一次玩家缓存数据
|
| | | ModelCenter.Instance.GetModel<RoleParticularModel>().ViewPlayerCacheData(playerID);
|
| | | //ModelCenter.Instance.GetModel<RoleParticularModel>().ViewPlayerCacheData(playerID);
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | fightPower = (int)(tmpFightPower % 100000000);
|
| | | fightPowerEx = (int)(tmpFightPower / 100000000);
|
| | |
|
| | | string serverName = ServerListCenter.Instance.GetServerName(ServerListCenter.Instance.currentServer.region_flag);
|
| | | //机器人
|
| | | matchPlayers.Add(new HC001_tagGCCrossRealmPKMatchOK.tagGCCrossRealmPKMatchPlayer()
|
| | | {
|
| | | PlayerID = (uint)playerID,
|
| | | PlayerName = name,
|
| | | PlayerName = StringUtility.Contact(Language.Get("Z2002", serverName), name),
|
| | | Job = (byte)job,
|
| | | LV = (ushort)level,
|
| | | RealmLV = PlayerDatas.Instance.baseData.realmLevel,
|
| | | Face = (uint)AvatarHelper.GetAvatarDefaultID(job),
|
| | | FacePic = (uint)AvatarHelper.GetAvatarFrameDefaultID(job),
|
| | | FightPower = (uint)fightPower,
|
| | | FightPowerEx = (uint)fightPowerEx
|
| | | FightPowerEx = (uint)fightPowerEx,
|
| | | ServerID = (uint)ServerListCenter.Instance.currentServer.region_flag
|
| | | });
|
| | |
|
| | | CreateRobot(matchPlayers[i]);
|
| | |
| | | [Serializable]
|
| | | public struct RolePropData
|
| | | {
|
| | | public string AccID;
|
| | | public int LV;
|
| | | public int RealmLV;
|
| | | public string Name;
|