| | |
| | | using UnityEngine;
|
| | | using System.Collections;
|
| | | using UnityEngine; |
| | | using System.Collections; |
| | | |
| | | // A3 39 玩家属性果实已使用个数信息#tagMCAttrFruitEatCntList
|
| | |
|
| | | // A3 39 玩家属性果实已使用个数信息#tagMCAttrFruitEatCntList
|
| | |
|
| | | public class HA339_tagMCAttrFruitEatCntList : GameNetPackBasic
|
| | | {
|
| | | public byte count; //信息个数
|
| | | public tagMCAttrFruitEatCnt[] EatCntList = null;
|
| | |
|
| | | public HA339_tagMCAttrFruitEatCntList()
|
| | | {
|
| | | _cmd = (ushort)0xA339;
|
| | | }
|
| | |
|
| | | public override void ReadFromBytes(byte[] vBytes)
|
| | | {
|
| | | TransBytes(out count, vBytes, NetDataType.BYTE);
|
| | | EatCntList = new tagMCAttrFruitEatCnt[count];
|
| | | for (int i = 0; i < count; i++)
|
| | | {
|
| | | EatCntList[i] = new tagMCAttrFruitEatCnt();
|
| | | TransBytes(out EatCntList[i].ItemID, vBytes, NetDataType.DWORD);
|
| | | TransBytes(out EatCntList[i].EatCnt, vBytes, NetDataType.WORD);
TransBytes(out EatCntList[i].ItemAddCnt, vBytes, NetDataType.DWORD);
|
| | | public class HA339_tagMCAttrFruitEatCntList : GameNetPackBasic {
|
| | | public byte count; //信息个数
|
| | | public tagMCAttrFruitEatCnt[] EatCntList;
|
| | |
|
| | | TransBytes(out EatCntList[i].ItemBreakCnt, vBytes, NetDataType.DWORD);
}
|
| | | }
|
| | | public class tagMCAttrFruitEatCnt
|
| | | {
|
| | | public uint ItemID; //果实物品ID
|
| | | public ushort EatCnt; //已使用个数
|
| | | public HA339_tagMCAttrFruitEatCntList () {
|
| | | _cmd = (ushort)0xA339;
|
| | | }
|
| | |
|
| | | public uint ItemAddCnt; //增幅丹增加上限
|
| | | public override void ReadFromBytes (byte[] vBytes) {
|
| | | TransBytes (out count, vBytes, NetDataType.BYTE);
|
| | | EatCntList = new tagMCAttrFruitEatCnt[count];
|
| | | for (int i = 0; i < count; i ++) {
|
| | | EatCntList[i] = new tagMCAttrFruitEatCnt();
|
| | | TransBytes (out EatCntList[i].ItemID, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out EatCntList[i].EatCnt, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out EatCntList[i].ItemAddCnt, vBytes, NetDataType.DWORD);
|
| | | TransBytes (out EatCntList[i].ItemBreakCnt, vBytes, NetDataType.DWORD);
|
| | | }
|
| | | }
|
| | |
|
| | | public uint ItemBreakCnt; //增幅丹突破次数
|
| | | }
|
| | |
|
| | | }
|
| | | public struct tagMCAttrFruitEatCnt {
|
| | | public uint ItemID; //果实物品ID
|
| | | public uint EatCnt; //已使用个数
|
| | | public uint ItemAddCnt; //增幅丹增加上限
|
| | | public uint ItemBreakCnt; //增幅丹突破次数
|
| | | }
|
| | |
|
| | | }
|