少年修仙传客户端代码仓库
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
27
28
29
30
31
using UnityEngine;
using System.Collections;
 
// A3 18 极品白拿信息 #tagMCFreeGoodsInfo
 
public class IL_HA318_tagMCFreeGoodsInfo : GameNetPackBasic {
    public uint OpenTime;    // 活动开启时间
    public byte Count;    // 个数
    public  tagMCFreeGoods[] FreeGoodsList;    // 信息
 
    public IL_HA318_tagMCFreeGoodsInfo () {
        _cmd = (ushort)0xA318;
    }
 
    public override void ReadFromBytes (byte[] vBytes) {
        TransBytes (out OpenTime, vBytes, NetDataType.DWORD);
        TransBytes (out Count, vBytes, NetDataType.BYTE);
        FreeGoodsList = new tagMCFreeGoods[Count];
        for (int i = 0; i < Count; i ++) {
            FreeGoodsList[i] = new tagMCFreeGoods();
            TransBytes (out FreeGoodsList[i].ID, vBytes, NetDataType.BYTE);
            TransBytes (out FreeGoodsList[i].BuyState, vBytes, NetDataType.DWORD);
        }
    }
 
    public struct tagMCFreeGoods {
        public byte ID;        // 礼包ID
        public uint BuyState;        // 购买状态 0-未购买 1-已领返还 time值-购买时间
    }
 
}