| | |
| | | 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]);
|