| | |
| | | public ushort RoomID; // 房间ID
|
| | | public byte NameLen;
|
| | | public string PlayerName; // 跨服名字
|
| | | public byte MatchPlayerCount;
|
| | | public tagGCCrossRealmPKMatchPlayer[] MatchPlayer = null; // 匹配到的玩家
|
| | |
|
| | | public HC001_tagGCCrossRealmPKMatchOK()
|
| | |
| | | TransBytes(out RoomID, vBytes, NetDataType.WORD);
|
| | | TransBytes(out NameLen, vBytes, NetDataType.BYTE);
|
| | | TransBytes(out PlayerName, vBytes, NetDataType.Chars, NameLen);
|
| | | TransBytes(out MatchPlayerCount, vBytes, NetDataType.BYTE);
|
| | | MatchPlayer = new tagGCCrossRealmPKMatchPlayer[MatchPlayerCount];
|
| | | for (int i = 0; i < MatchPlayerCount; i++)
|
| | | {
|
| | | MatchPlayer[i] = new tagGCCrossRealmPKMatchPlayer();
|
| | | TransBytes(out MatchPlayer[i].PlayerID, vBytes, NetDataType.DWORD);
|
| | | TransBytes(out MatchPlayer[i].NameLen, vBytes, NetDataType.BYTE);
|
| | | TransBytes(out MatchPlayer[i].PlayerName, vBytes, NetDataType.Chars, MatchPlayer[i].NameLen);
|
| | | TransBytes(out MatchPlayer[i].Job, vBytes, NetDataType.BYTE);
|
| | | TransBytes(out MatchPlayer[i].LV, vBytes, NetDataType.WORD);
|
| | | TransBytes(out MatchPlayer[i].MaxHP, vBytes, NetDataType.DWORD);
|
| | | }
|
| | | }
|
| | |
|
| | | public struct tagGCCrossRealmPKMatchPlayer
|