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值-购买时间
|
}
|
|
}
|