using UnityEngine; using System.Collections; //A5 04 玩家领取奖励 #tagCMPlayerGetReward class IL_CA504_tagCMPlayerGetReward : GameNetPackBasic { public byte RewardType; //奖励类型 public uint DataEx; //附带信息 public byte DataExStrLen; //附加字符信息长度 public string DataExStr; //附加字符信息 public IL_CA504_tagCMPlayerGetReward() { combineCmd = (ushort)0x03FE; _cmd = (ushort)0xA504; } public override void WriteToBytes() { WriteBytes(RewardType, NetDataType.BYTE); WriteBytes(DataEx, NetDataType.DWORD); WriteBytes(DataExStrLen, NetDataType.BYTE); WriteBytes(DataExStr, NetDataType.Chars, DataExStrLen); } }