少年修仙传客户端代码仓库
hch
2025-03-03 28785d6ddf9c08e49527ede9405c7b6c93c6ed32
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
27
28
29
30
31
32
33
using UnityEngine;
using System.Collections;
 
// C0 13 幸运云购购买号码记录 #tagGCLuckyCloudBuyNumRecInfo
 
public class IL_HC013_tagGCLuckyCloudBuyNumRecInfo : GameNetPackBasic {
    public ushort RemainCount;    // 开奖剩余份数
    public ushort Count;
    public  tagGCLuckyCloudBuyNumRec[] BuyNumRecList;
 
    public IL_HC013_tagGCLuckyCloudBuyNumRecInfo () {
        _cmd = (ushort)0xC013;
    }
 
    public override void ReadFromBytes (byte[] vBytes) {
        TransBytes (out RemainCount, vBytes, NetDataType.WORD);
        TransBytes (out Count, vBytes, NetDataType.WORD);
        BuyNumRecList = new tagGCLuckyCloudBuyNumRec[Count];
        for (int i = 0; i < Count; i ++) {
            BuyNumRecList[i] = new tagGCLuckyCloudBuyNumRec();
            TransBytes (out BuyNumRecList[i].NameLen, vBytes, NetDataType.BYTE);
            TransBytes (out BuyNumRecList[i].PlayerName, vBytes, NetDataType.Chars, BuyNumRecList[i].NameLen);
            TransBytes (out BuyNumRecList[i].BuyNum, vBytes, NetDataType.WORD);
        }
    }
 
    public struct tagGCLuckyCloudBuyNumRec {
        public byte NameLen;
        public string PlayerName;
        public ushort BuyNum;
    }
 
}