using System.Collections.Generic; using Thousandto.Plugins.Common; using Thousandto.Code.Logic.Network; namespace MSG_OpenServerAc { public partial class PersonalRevel : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : id = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : state = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt32(1,id); ProtoBufUtils.WriteInt32(2,state); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { id = 0; state = 0; } public int id; public int state; } public partial class OpenServerRevel : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : id = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : rank = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : curValue = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : if(pList == null) { pList = new List(); } pList.Add(new PersonalRevel()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); pList[pList.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt32(1,id); ProtoBufUtils.WriteInt32(2,rank); ProtoBufUtils.WriteInt32(3,curValue); for (int i = 0; i < pList.Count; i++) { if(pList != null) { pList[i].WriteMessage(4); } } ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { id = 0; rank = 0; curValue = 0; if(pList != null) { pList.Clear(); } } public int id; public int rank; public int curValue; public List pList = new List(); } public partial class ResOpenSeverRevelList : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResOpenSeverRevelList(this); } public const uint MsgID = 511101; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: openTime = ProtoBufUtils.ReadInt64(ref readPos); break; case 2: if(revels == null) { revels = new List(); } revels.Add(new OpenServerRevel()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); revels[revels.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { openTime = 0; if(revels != null) { revels.Clear(); } } public long openTime; public List revels = new List(); } public partial class ResOpenSeverRevelInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResOpenSeverRevelInfo(this); } public const uint MsgID = 511102; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(revel == null) { revel = new OpenServerRevel(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); revel.ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(revel != null) { revel.Clear(); } } public OpenServerRevel revel; } public partial class ResOpenSeverRevelReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResOpenSeverRevelReward(this); } public const uint MsgID = 511103; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: id = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { id = 0; } public int id; } public partial class ResOpenSeverRevelPersonReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResOpenSeverRevelPersonReward(this); } public const uint MsgID = 511114; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: id = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { id = 0; } public int id; } public partial class ReqOpenSeverRevelReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511201; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,id); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { id = 0; } public int id; } public partial class ReqOpenServerRevel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511209; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { } } public partial class ReqOpenSeverRevelPersonReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511210; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,id); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { id = 0; } public int id; } public partial class GrowUp : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : id = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : progress = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : state = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt32(1,id); ProtoBufUtils.WriteInt32(2,progress); ProtoBufUtils.WriteBoolean(3,state); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { id = 0; progress = 0; state = false; } public int id; public int progress; public bool state; } public partial class ResGrowUpInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGrowUpInfo(this); } public const uint MsgID = 511104; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: openTime = ProtoBufUtils.ReadInt64(ref readPos); break; case 2: point = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: hasGet = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: price = ProtoBufUtils.ReadInt32(ref readPos); break; case 5: if(growups == null) { growups = new List(); } growups.Add(new GrowUp()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); growups[growups.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { openTime = 0; point = 0; hasGet = 0; price = 0; if(growups != null) { growups.Clear(); } } public long openTime; public int point; public int hasGet; public int price; public List growups = new List(); } public partial class ResGrowUpList : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGrowUpList(this); } public const uint MsgID = 511105; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(growups == null) { growups = new List(); } growups.Add(new GrowUp()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); growups[growups.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(growups != null) { growups.Clear(); } } public List growups = new List(); } public partial class ResGrowUpPoint : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGrowUpPoint(this); } public const uint MsgID = 511106; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: id = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: point = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { id = 0; point = 0; } public int id; public int point; } public partial class ResGrowUpPointReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGrowUpPointReward(this); } public const uint MsgID = 511107; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: id = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { id = 0; } public int id; } public partial class ResGrowUpPur : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGrowUpPur(this); } public const uint MsgID = 511108; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: price = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { price = 0; } public int price; } public partial class ReqGrowUpPoint : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511202; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,id); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { id = 0; } public int id; } public partial class ReqGrowUpPointReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511203; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,id); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { id = 0; } public int id; } public partial class ReqGrowUpPur : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511204; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { } } public partial class OpenServerSpec : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : id = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : progress = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : state = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : remain = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt32(1,id); ProtoBufUtils.WriteInt32(2,progress); ProtoBufUtils.WriteInt32(3,state); ProtoBufUtils.WriteInt32(4,remain); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { id = 0; progress = 0; state = 0; remain = 0; } public int id; public int progress; public int state; public int remain; } public partial class ResOpenServerSpecRedDot : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResOpenServerSpecRedDot(this); } public const uint MsgID = 511109; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: state = ProtoBufUtils.ReadBoolean(ref readPos); break; case 2: if(exchangeList == null) { exchangeList = new List(); } exchangeList.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; default: break; } } } } public void Clear() { state = false; if(exchangeList != null) { exchangeList.Clear(); } } public bool state; public List exchangeList = new List(); } public partial class ResOpenServerSpecAc : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResOpenServerSpecAc(this); } public const uint MsgID = 511110; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(specList == null) { specList = new List(); } specList.Add(new OpenServerSpec()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); specList[specList.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: if(redList == null) { redList = new List(); } redList.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; case 3: redState = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: if(exchangeList == null) { exchangeList = new List(); } exchangeList.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; case 5: openTime = ProtoBufUtils.ReadInt64(ref readPos); break; default: break; } } } } public void Clear() { if(specList != null) { specList.Clear(); } if(redList != null) { redList.Clear(); } redState = 0; if(exchangeList != null) { exchangeList.Clear(); } openTime = 0; } public List specList = new List(); public List redList = new List(); public int redState; public List exchangeList = new List(); public long openTime; } public partial class ResOpenServerSpecReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResOpenServerSpecReward(this); } public const uint MsgID = 511111; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: id = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: remain = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { id = 0; remain = 0; } public int id; public int remain; } public partial class ResOpenServerSpecRed : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResOpenServerSpecRed(this); } public const uint MsgID = 511112; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { default: break; } } } } public void Clear() { } } public partial class ResOpenServerSpecExchange : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResOpenServerSpecExchange(this); } public const uint MsgID = 511113; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: type = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: remain = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { type = 0; remain = 0; } public int type; public int remain; } public partial class ReqOpenServerSpecAc : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511205; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { } } public partial class ReqOpenServerSpecReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511206; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,id); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { id = 0; } public int id; } public partial class ReqOpenServerSpecRed : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511207; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { } } public partial class ReqOpenServerSpecExchange : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511208; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,type); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { type = 0; } public int type; } public partial class ReqFreeDailyReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511211; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { } } public partial class ResFreeDailyReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResFreeDailyReward(this); } public const uint MsgID = 511115; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: hasGet = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { hasGet = false; } public bool hasGet; } public partial class killInfo : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : cfgId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : killTime = ProtoBufUtils.ReadInt64(ref readPos); break; case 3 : if(killers == null) { killers = new List(); } killers.Add(ProtoBufUtils.ReadString(ref readPos)); break; case 4 : state = ProtoBufUtils.ReadInt32(ref readPos); break; case 5 : redpacketState = ProtoBufUtils.ReadInt32(ref readPos); break; case 6 : reliveTime = ProtoBufUtils.ReadInt64(ref readPos); break; case 7 : level = ProtoBufUtils.ReadInt32(ref readPos); break; case 8 : career = ProtoBufUtils.ReadInt32(ref readPos); break; case 9 : roleId = ProtoBufUtils.ReadInt64(ref readPos); break; case 10 : if(head == null) { head = new MSG_Common.HeadAttribute(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); head.ReadMessage(ref readPos, totalCount); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt32(1,cfgId); ProtoBufUtils.WriteInt64(2,killTime); for (int i = 0; i < killers.Count; i++) { ProtoBufUtils.WriteString(3,killers[i]); } ProtoBufUtils.WriteInt32(4,state); ProtoBufUtils.WriteInt32(5,redpacketState); ProtoBufUtils.WriteInt64(6,reliveTime); ProtoBufUtils.WriteInt32(7,level); ProtoBufUtils.WriteInt32(8,career); ProtoBufUtils.WriteInt64(9,roleId); if(head != null) { head.WriteMessage(10); } ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { cfgId = 0; killTime = 0; if(killers != null) { killers.Clear(); } state = 0; redpacketState = 0; reliveTime = 0; level = 0; career = 0; roleId = 0; if(head != null) { head.Clear(); } } public int cfgId; public long killTime; public List killers = new List(); public int state; public int redpacketState; public long reliveTime; public int level; public int career; public long roleId; public MSG_Common.HeadAttribute head; } public partial class bossKillInfo : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : cfgId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : reliveTime = ProtoBufUtils.ReadInt64(ref readPos); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt32(1,cfgId); ProtoBufUtils.WriteInt64(2,reliveTime); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { cfgId = 0; reliveTime = 0; } public int cfgId; public long reliveTime; } public partial class ReqOpenFirstKillPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511212; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { } } public partial class ResOpenFirstKillPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResOpenFirstKillPanel(this); } public const uint MsgID = 511116; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(bossInfo == null) { bossInfo = new List(); } bossInfo.Add(new killInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); bossInfo[bossInfo.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(bossInfo != null) { bossInfo.Clear(); } } public List bossInfo = new List(); } public partial class ReqGetKillReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511213; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,id); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { id = 0; } public int id; } public partial class ResGetKillReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGetKillReward(this); } public const uint MsgID = 511117; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: id = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { id = 0; } public int id; } public partial class ReqHongBaoReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511214; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,id); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { id = 0; } public int id; } public partial class ResHongBaoReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResHongBaoReward(this); } public const uint MsgID = 511118; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: id = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { id = 0; } public int id; } public partial class ResFirstKillBossInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResFirstKillBossInfo(this); } public const uint MsgID = 511119; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(bossInfo == null) { bossInfo = new List(); } bossInfo.Add(new bossKillInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); bossInfo[bossInfo.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(bossInfo != null) { bossInfo.Clear(); } } public List bossInfo = new List(); } public partial class ResFirstKillAdvice : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResFirstKillAdvice(this); } public const uint MsgID = 511120; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: cfgId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: killer = ProtoBufUtils.ReadString(ref readPos); break; case 3: level = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: career = ProtoBufUtils.ReadInt32(ref readPos); break; case 5: fight = ProtoBufUtils.ReadInt64(ref readPos); break; case 6: roleId = ProtoBufUtils.ReadInt64(ref readPos); break; case 7: if(head == null) { head = new MSG_Common.HeadAttribute(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); head.ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { cfgId = 0; killer = null; level = 0; career = 0; fight = 0; roleId = 0; if(head != null) { head.Clear(); } } public int cfgId; public string killer; public int level; public int career; public long fight; public long roleId; public MSG_Common.HeadAttribute head; } public partial class ResFirstKillRedPoint : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResFirstKillRedPoint(this); } public const uint MsgID = 511121; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: cfgId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: state = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: redpacketState = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { cfgId = 0; state = 0; redpacketState = 0; } public int cfgId; public int state; public int redpacketState; } public partial class cfgItem : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : id = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : pro = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : isGet = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt32(1,id); ProtoBufUtils.WriteInt32(2,pro); ProtoBufUtils.WriteBoolean(3,isGet); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { id = 0; pro = 0; isGet = false; } public int id; public int pro; public bool isGet; } public partial class actInfo : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : type = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : startTime = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : endTime = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : if(items == null) { items = new List(); } items.Add(new cfgItem()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); items[items.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt32(1,type); ProtoBufUtils.WriteInt32(2,startTime); ProtoBufUtils.WriteInt32(3,endTime); for (int i = 0; i < items.Count; i++) { if(items != null) { items[i].WriteMessage(4); } } ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { type = 0; startTime = 0; endTime = 0; if(items != null) { items.Clear(); } } public int type; public int startTime; public int endTime; public List items = new List(); } public partial class ReqNewServerActPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511215; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { } } public partial class ResNewServerActPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResNewServerActPanel(this); } public const uint MsgID = 511122; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(infos == null) { infos = new List(); } infos.Add(new actInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); infos[infos.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(infos != null) { infos.Clear(); } } public List infos = new List(); } public partial class ReqGetActReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511216; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,type); ProtoBufUtils.WriteInt32(2,cfgId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { type = 0; cfgId = 0; } public int type; public int cfgId; } public partial class ResGetActReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGetActReward(this); } public const uint MsgID = 511123; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: type = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: id = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: isGet = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { type = 0; id = 0; isGet = false; } public int type; public int id; public bool isGet; } public partial class ResLuckyCardInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResLuckyCardInfo(this); } public const uint MsgID = 511124; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(gotRewards == null) { gotRewards = new List(); } gotRewards.Add(new luckyCardRewardGot()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); gotRewards[gotRewards.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: if(tasks == null) { tasks = new List(); } tasks.Add(new luckyCardTask()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); tasks[tasks.Count - 1].ReadMessage(ref readPos, totalCount); break; case 3: lucky = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { if(gotRewards != null) { gotRewards.Clear(); } if(tasks != null) { tasks.Clear(); } lucky = 0; } public List gotRewards = new List(); public List tasks = new List(); public int lucky; } public partial class luckyCardRewardGot : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : cellId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : itemId = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : num = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : bind = ProtoBufUtils.ReadBoolean(ref readPos); break; case 5 : occ = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt32(1,cellId); ProtoBufUtils.WriteInt32(2,itemId); ProtoBufUtils.WriteInt32(3,num); ProtoBufUtils.WriteBoolean(4,bind); ProtoBufUtils.WriteInt32(5,occ); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { cellId = 0; itemId = 0; num = 0; bind = false; occ = 0; } public int cellId; public int itemId; public int num; public bool bind; public int occ; } public partial class luckyCardRecord : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : time = ProtoBufUtils.ReadInt64(ref readPos); break; case 2 : playerName = ProtoBufUtils.ReadString(ref readPos); break; case 3 : itemId = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : num = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt64(1,time); ProtoBufUtils.WriteString(2,playerName); ProtoBufUtils.WriteInt32(3,itemId); ProtoBufUtils.WriteInt32(4,num); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { time = 0; playerName = null; itemId = 0; num = 0; } public long time; public string playerName; public int itemId; public int num; } public partial class luckyCardTask : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : id = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : fenzi = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : fenmu = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : state = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt32(1,id); ProtoBufUtils.WriteInt32(2,fenzi); ProtoBufUtils.WriteInt32(3,fenmu); ProtoBufUtils.WriteInt32(4,state); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { id = 0; fenzi = 0; fenmu = 0; state = 0; } public int id; public int fenzi; public int fenmu; public int state; } public partial class ReqLuckyOnce : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511217; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,cellId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { cellId = 0; } public int cellId; } public partial class ResLuckyOnce : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResLuckyOnce(this); } public const uint MsgID = 511125; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(reward == null) { reward = new luckyCardRewardGot(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); reward.ReadMessage(ref readPos, totalCount); break; case 2: lucky = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { if(reward != null) { reward.Clear(); } lucky = 0; } public luckyCardRewardGot reward; public int lucky; } public partial class ReqGetLuckyTaskReawrd : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511218; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,taskId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { taskId = 0; } public int taskId; } public partial class ResGetLuckyTaskReawrd : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGetLuckyTaskReawrd(this); } public const uint MsgID = 511126; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(task == null) { task = new luckyCardTask(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); task.ReadMessage(ref readPos, totalCount); break; case 2: lucky = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { if(task != null) { task.Clear(); } lucky = 0; } public luckyCardTask task; public int lucky; } public partial class ReqGetLuckyLog : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511219; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { } } public partial class ResGetLuckyLog : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGetLuckyLog(this); } public const uint MsgID = 511127; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(records == null) { records = new List(); } records.Add(new luckyCardRecord()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); records[records.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(records != null) { records.Clear(); } } public List records = new List(); } public partial class V4ApplyPlayer : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : id = ProtoBufUtils.ReadInt64(ref readPos); break; case 2 : occ = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : level = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : name = ProtoBufUtils.ReadString(ref readPos); break; case 5 : if(head == null) { head = new MSG_Common.HeadAttribute(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); head.ReadMessage(ref readPos, totalCount); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt64(1,id); ProtoBufUtils.WriteInt32(2,occ); ProtoBufUtils.WriteInt32(3,level); ProtoBufUtils.WriteString(4,name); if(head != null) { head.WriteMessage(5); } ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { id = 0; occ = 0; level = 0; name = null; if(head != null) { head.Clear(); } } public long id; public int occ; public int level; public string name; public MSG_Common.HeadAttribute head; } public partial class V4HelpPlayer : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : if(player == null) { player = new V4ApplyPlayer(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); player.ReadMessage(ref readPos, totalCount); break; case 2 : helpTime = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : if(awardState == null) { awardState = new List(); } awardState.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); if(player != null) { player.WriteMessage(1); } ProtoBufUtils.WriteInt32(2,helpTime); for (int i = 0; i < awardState.Count; i++) { ProtoBufUtils.WriteInt32(3,awardState[i]); } ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { if(player != null) { player.Clear(); } helpTime = 0; if(awardState != null) { awardState.Clear(); } } public V4ApplyPlayer player; public int helpTime; public List awardState = new List(); } public partial class V4HelpRecord : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : helper = ProtoBufUtils.ReadString(ref readPos); break; case 2 : beHelper = ProtoBufUtils.ReadString(ref readPos); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteString(1,helper); ProtoBufUtils.WriteString(2,beHelper); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { helper = null; beHelper = null; } public string helper; public string beHelper; } public partial class ResV4HelpInfos : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResV4HelpInfos(this); } public const uint MsgID = 511128; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(applyList == null) { applyList = new List(); } applyList.Add(new V4ApplyPlayer()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); applyList[applyList.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: if(myHelper == null) { myHelper = new V4HelpPlayer(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); myHelper.ReadMessage(ref readPos, totalCount); break; case 3: if(helpOther == null) { helpOther = new V4HelpPlayer(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); helpOther.ReadMessage(ref readPos, totalCount); break; case 4: if(records == null) { records = new List(); } records.Add(new V4HelpRecord()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); records[records.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(applyList != null) { applyList.Clear(); } if(myHelper != null) { myHelper.Clear(); } if(helpOther != null) { helpOther.Clear(); } if(records != null) { records.Clear(); } } public List applyList = new List(); public V4HelpPlayer myHelper; public V4HelpPlayer helpOther; public List records = new List(); } public partial class ReqV4HelpInfo : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511220; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { } } public partial class ReqV4GetAward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511221; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,awardId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { awardId = 0; } public int awardId; } public partial class ReqV4HelpBeApply : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511222; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { } } public partial class ReqV4HelpOther : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511223; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt64(1,playerId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { playerId = 0; } public long playerId; } public partial class V4Rebate : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : id = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : progress = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : isComplete = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt32(1,id); ProtoBufUtils.WriteInt32(2,progress); ProtoBufUtils.WriteBoolean(3,isComplete); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { id = 0; progress = 0; isComplete = false; } public int id; public int progress; public bool isComplete; } public partial class ResV4RebateInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResV4RebateInfo(this); } public const uint MsgID = 511129; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: curState = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: if(rewardState == null) { rewardState = new List(); } rewardState.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; case 3: if(v4rebates == null) { v4rebates = new List(); } v4rebates.Add(new V4Rebate()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); v4rebates[v4rebates.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { curState = 0; if(rewardState != null) { rewardState.Clear(); } if(v4rebates != null) { v4rebates.Clear(); } } public int curState; public List rewardState = new List(); public List v4rebates = new List(); } public partial class ResV4RebateUpDate : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResV4RebateUpDate(this); } public const uint MsgID = 511130; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(v4rebates == null) { v4rebates = new List(); } v4rebates.Add(new V4Rebate()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); v4rebates[v4rebates.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: curState = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { if(v4rebates != null) { v4rebates.Clear(); } curState = 0; } public List v4rebates = new List(); public int curState; } public partial class ReqV4RebateCompleteTask : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511224; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,id); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { id = 0; } public int id; } public partial class ReqV4RebateReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511225; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,rewardState); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { rewardState = 0; } public int rewardState; } public partial class ResV4RebateRewardResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResV4RebateRewardResult(this); } public const uint MsgID = 511131; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(rewardState == null) { rewardState = new List(); } rewardState.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; default: break; } } } } public void Clear() { if(rewardState != null) { rewardState.Clear(); } } public List rewardState = new List(); } public partial class ReqGetRebateBox : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511226; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,day); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { day = 0; } public int day; } public partial class ResRebateBoxList : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResRebateBoxList(this); } public const uint MsgID = 511132; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(num == null) { num = new List(); } num.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; case 2: if(day == null) { day = new List(); } day.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; default: break; } } } } public void Clear() { if(num != null) { num.Clear(); } if(day != null) { day.Clear(); } } public List num = new List(); public List day = new List(); } public partial class XMZhengBa : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible { public void Send(){} public void Excute(){} public void ReadMessage(ref int readPos, int totalCount) { int endIndex = totalCount + readPos - 1; while (readPos <= endIndex) { int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1 : id = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : progress = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : isComplete = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt32(1,id); ProtoBufUtils.WriteInt32(2,progress); ProtoBufUtils.WriteBoolean(3,isComplete); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { id = 0; progress = 0; isComplete = false; } public int id; public int progress; public bool isComplete; } public partial class ResXMZhengBaInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResXMZhengBaInfo(this); } public const uint MsgID = 511133; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(xmzbList == null) { xmzbList = new List(); } xmzbList.Add(new XMZhengBa()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); xmzbList[xmzbList.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: endTime = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { if(xmzbList != null) { xmzbList.Clear(); } endTime = 0; } public List xmzbList = new List(); public int endTime; } public partial class ReqGetXMZBReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 511227; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,id); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { id = 0; } public int id; } public partial class ResGetXMZBReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGetXMZBReward(this); } public const uint MsgID = 511134; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { case 1: if(xmzb == null) { xmzb = new XMZhengBa(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); xmzb.ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(xmzb != null) { xmzb.Clear(); } } public XMZhengBa xmzb; } }