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;
|
}
|
|
}
|