| | |
| | | public ushort RoomID; // 房间ID
|
| | | public byte NameLen;
|
| | | public string PlayerName; // 跨服名字
|
| | | public byte Number; // 位置编号;1-左,2-右
|
| | | public byte MatchPlayerCount;
|
| | | public tagGCCrossRealmPKMatchPlayer[] MatchPlayer = null; // 匹配到的玩家
|
| | |
|
| | |
| | | TransBytes(out RoomID, vBytes, NetDataType.WORD);
|
| | | TransBytes(out NameLen, vBytes, NetDataType.BYTE);
|
| | | TransBytes(out PlayerName, vBytes, NetDataType.Chars, NameLen);
|
| | | TransBytes(out Number, vBytes, NetDataType.BYTE);
|
| | | TransBytes(out MatchPlayerCount, vBytes, NetDataType.BYTE);
|
| | | MatchPlayer = new tagGCCrossRealmPKMatchPlayer[MatchPlayerCount];
|
| | | for (int i = 0; i < MatchPlayerCount; i++)
|
| | |
| | | autoEnsureTime = Time.time + 5f, |
| | | myName = matchOK.PlayerName, |
| | | myJob = PlayerDatas.Instance.baseData.Job, |
| | | myBornPoint = matchOK.Number, |
| | | opponentName = matchOK.MatchPlayer[0].PlayerName, |
| | | opponentJob = matchOK.MatchPlayer[0].Job, |
| | | opponentMaxHp = (int)matchOK.MatchPlayer[0].MaxHP, |
| | |
| | | public float validTimeLimited; |
| | | public string myName; |
| | | public int myJob; |
| | | public int myBornPoint;//1-左;2-右 |
| | | public int opponentPlayerId; |
| | | public string opponentName; |
| | | public int opponentJob; |