少年修仙传客户端代码仓库
hch
2025-06-12 204ef05a831c9484e2abc561d27ecbff7c797453
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using UnityEngine;
using System.Collections;
 
// C1 22 跨服排位竞猜 #tagCMChampionshipGuess
 
public class IL_CC122_tagCMChampionshipGuess : GameNetPackBasic {
    public byte ZoneID;    //排位数据分区ID
    public byte GuessType;    //竞猜类型 8-8强;4-4强排位
    public uint PlayerID;    //目标玩家ID
    public byte GuessCount;    //投注/追加份数
    public byte GuessRank;    // 竞猜名次,没有名次的竞猜默认0;1-代表第一名
 
    public IL_CC122_tagCMChampionshipGuess () {
        combineCmd = (ushort)0x03FE;
        _cmd = (ushort)0xC122;
    }
 
    public override void WriteToBytes () {
        WriteBytes (ZoneID, NetDataType.BYTE);
        WriteBytes (GuessType, NetDataType.BYTE);
        WriteBytes (PlayerID, NetDataType.DWORD);
        WriteBytes (GuessCount, NetDataType.BYTE);
        WriteBytes (GuessRank, NetDataType.BYTE);
    }
 
}