using System.Collections.Generic; using Thousandto.Plugins.Common; using Thousandto.Code.Logic.Network; namespace MSG_zone { public partial class cloneTeamInfo : 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 : roleId = ProtoBufUtils.ReadInt64(ref readPos); break; case 2 : carear = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : serverId = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : ready = ProtoBufUtils.ReadBoolean(ref readPos); break; case 5 : leader = ProtoBufUtils.ReadBoolean(ref readPos); break; case 6 : roleName = ProtoBufUtils.ReadString(ref readPos); break; case 7 : level = ProtoBufUtils.ReadInt32(ref readPos); break; case 8 : power = ProtoBufUtils.ReadInt64(ref readPos); break; case 9 : isRobot = ProtoBufUtils.ReadBoolean(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.WriteInt64(1,roleId); ProtoBufUtils.WriteInt32(2,carear); ProtoBufUtils.WriteInt32(3,serverId); ProtoBufUtils.WriteBoolean(4,ready); ProtoBufUtils.WriteBoolean(5,leader); ProtoBufUtils.WriteString(6,roleName); ProtoBufUtils.WriteInt32(7,level); ProtoBufUtils.WriteInt64(8,power); ProtoBufUtils.WriteBoolean(9,isRobot); if(head != null) { head.WriteMessage(10); } ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { roleId = 0; carear = 0; serverId = 0; ready = false; leader = false; roleName = null; level = 0; power = 0; isRobot = false; if(head != null) { head.Clear(); } } public long roleId; public int carear; public int serverId; public bool ready; public bool leader; public string roleName; public int level; public long power; public bool isRobot; public MSG_Common.HeadAttribute head; } public partial class ReqEnterZone : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 151201; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,modelId); ProtoBufUtils.WriteInt32(2,param); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { modelId = 0; param = 0; } public int modelId; public int param; } public partial class ResEnterZone : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResEnterZone(this); } public const uint MsgID = 151101; 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.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { state = 0; } public int state; } public partial class G2PReqEnterZone : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_G2PReqEnterZone(this); } public const uint MsgID = 151301; 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: modelId = ProtoBufUtils.ReadInt32(ref readPos); break; case 9: level = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: if(list == null) { list = new List(); } list.Add(new cloneTeamInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); list[list.Count - 1].ReadMessage(ref readPos, totalCount); break; case 3: roleId = ProtoBufUtils.ReadInt64(ref readPos); break; case 4: plat = ProtoBufUtils.ReadString(ref readPos); break; case 5: sid = ProtoBufUtils.ReadInt32(ref readPos); break; case 6: birthGroup = ProtoBufUtils.ReadInt32(ref readPos); break; case 7: enterType = ProtoBufUtils.ReadInt32(ref readPos); break; case 8: guildId = ProtoBufUtils.ReadInt64(ref readPos); break; default: break; } } } } public void Clear() { modelId = 0; level = 0; if(list != null) { list.Clear(); } roleId = 0; plat = null; sid = 0; birthGroup = 0; enterType = 0; guildId = 0; } public int modelId; public int level; public List list = new List(); public long roleId; public string plat; public int sid; public int birthGroup; public int enterType; public long guildId; } public partial class P2GResEnterZone : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_P2GResEnterZone(this); } public const uint MsgID = 151401; 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: roleId = ProtoBufUtils.ReadInt64(ref readPos); break; case 2: modelId = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: state = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: if(roleIds == null) { roleIds = new List(); } roleIds.Add(ProtoBufUtils.ReadInt64(ref readPos)); break; case 5: enterType = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { roleId = 0; modelId = 0; state = 0; if(roleIds != null) { roleIds.Clear(); } enterType = 0; } public long roleId; public int modelId; public int state; public List roleIds = new List(); public int enterType; } public partial class ResTeamEnterZoneISOK : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResTeamEnterZoneISOK(this); } public const uint MsgID = 151102; 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: modelId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: roleName = ProtoBufUtils.ReadString(ref readPos); break; default: break; } } } } public void Clear() { modelId = 0; roleName = null; } public int modelId; public string roleName; } public partial class ReqTeamAcceptEnterZone : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 151203; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteBoolean(1,ready); ProtoBufUtils.WriteInt32(2,modelId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { ready = false; modelId = 0; } public bool ready; public int modelId; } public partial class ResTeamAcceptEnterZone : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResTeamAcceptEnterZone(this); } public const uint MsgID = 151103; 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: ready = ProtoBufUtils.ReadBoolean(ref readPos); break; case 2: modelId = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: roleId = ProtoBufUtils.ReadInt64(ref readPos); break; case 4: rolename = ProtoBufUtils.ReadString(ref readPos); break; default: break; } } } } public void Clear() { ready = false; modelId = 0; roleId = 0; rolename = null; } public bool ready; public int modelId; public long roleId; public string rolename; } public partial class ResEnterZoneTeamInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResEnterZoneTeamInfo(this); } public const uint MsgID = 151104; 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(infolist == null) { infolist = new List(); } infolist.Add(new cloneTeamInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); infolist[infolist.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: endTime = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: teamId = ProtoBufUtils.ReadInt64(ref readPos); break; case 4: modelId = ProtoBufUtils.ReadInt32(ref readPos); break; case 5: cross = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { if(infolist != null) { infolist.Clear(); } endTime = 0; teamId = 0; modelId = 0; cross = false; } public List infolist = new List(); public int endTime; public long teamId; public int modelId; public bool cross; } public partial class P2GReqMatchSucceed : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_P2GReqMatchSucceed(this); } public const uint MsgID = 151406; 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(infolist == null) { infolist = new List(); } infolist.Add(new cloneTeamInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); infolist[infolist.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: endTime = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: teamId = ProtoBufUtils.ReadInt64(ref readPos); break; case 4: modelId = ProtoBufUtils.ReadInt32(ref readPos); break; case 5: isCreateRobot = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { if(infolist != null) { infolist.Clear(); } endTime = 0; teamId = 0; modelId = 0; isCreateRobot = false; } public List infolist = new List(); public int endTime; public long teamId; public int modelId; public bool isCreateRobot; } public partial class ReqReadyZone : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 151204; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt64(1,teamId); ProtoBufUtils.WriteBoolean(2,ready); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { teamId = 0; ready = false; } public long teamId; public bool ready; } public partial class G2PReqCrossZoneReadyZone : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_G2PReqCrossZoneReadyZone(this); } public const uint MsgID = 151304; 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: teamId = ProtoBufUtils.ReadInt64(ref readPos); break; case 2: ready = ProtoBufUtils.ReadBoolean(ref readPos); break; case 3: roleId = ProtoBufUtils.ReadInt64(ref readPos); break; default: break; } } } } public void Clear() { teamId = 0; ready = false; roleId = 0; } public long teamId; public bool ready; public long roleId; } public partial class P2GResCrossZoneReadyZone : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_P2GResCrossZoneReadyZone(this); } public const uint MsgID = 151404; 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: teamId = ProtoBufUtils.ReadInt64(ref readPos); break; case 2: ready = ProtoBufUtils.ReadBoolean(ref readPos); break; case 3: roleName = ProtoBufUtils.ReadString(ref readPos); break; case 4: roleId = ProtoBufUtils.ReadInt64(ref readPos); break; default: break; } } } } public void Clear() { teamId = 0; ready = false; roleName = null; roleId = 0; } public long teamId; public bool ready; public string roleName; public long roleId; } public partial class ReqCancelMatch : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 151205; 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 G2PReqCancelMatch : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_G2PReqCancelMatch(this); } public const uint MsgID = 151305; 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: roleId = ProtoBufUtils.ReadInt64(ref readPos); break; case 2: name = ProtoBufUtils.ReadString(ref readPos); break; default: break; } } } } public void Clear() { roleId = 0; name = null; } public long roleId; public string name; } public partial class P2GReqCancelCrossTag : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_P2GReqCancelCrossTag(this); } public const uint MsgID = 151407; 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(infolist == null) { infolist = new List(); } infolist.Add(new cloneTeamInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); infolist[infolist.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: teamId = ProtoBufUtils.ReadInt64(ref readPos); break; case 3: roleName = ProtoBufUtils.ReadString(ref readPos); break; case 4: culpritId = ProtoBufUtils.ReadInt64(ref readPos); break; case 5: type = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { if(infolist != null) { infolist.Clear(); } teamId = 0; roleName = null; culpritId = 0; type = 0; } public List infolist = new List(); public long teamId; public string roleName; public long culpritId; public int type; } public partial class ResEnterCrossZoneReady : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResEnterCrossZoneReady(this); } public const uint MsgID = 151105; 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: endTime = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: modelId = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { endTime = 0; modelId = 0; } public int endTime; public int modelId; } public partial class ResTeamEnterZoneFailure : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResTeamEnterZoneFailure(this); } public const uint MsgID = 151106; 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: teamId = ProtoBufUtils.ReadInt64(ref readPos); break; case 2: roleId = ProtoBufUtils.ReadInt64(ref readPos); break; case 3: roleName = ProtoBufUtils.ReadString(ref readPos); break; case 4: type = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { teamId = 0; roleId = 0; roleName = null; type = 0; } public long teamId; public long roleId; public string roleName; public int type; } public partial class ReqSweepZone : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 151210; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,modelId); ProtoBufUtils.WriteBoolean(2,resolve); ProtoBufUtils.WriteInt32(3,bossNum); ProtoBufUtils.WriteInt32(4,param); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { modelId = 0; resolve = false; bossNum = 0; param = 0; } public int modelId; public bool resolve; public int bossNum; public int param; } public partial class ResMatchFailure : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResMatchFailure(this); } public const uint MsgID = 151107; 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: reason = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: modelId = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: name = ProtoBufUtils.ReadString(ref readPos); break; default: break; } } } } public void Clear() { reason = 0; modelId = 0; name = null; } public int reason; public int modelId; public string name; } public partial class P2GEnterOutlandWar : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_P2GEnterOutlandWar(this); } public const uint MsgID = 151408; 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(roleIds == null) { roleIds = new List(); } roleIds.Add(ProtoBufUtils.ReadInt64(ref readPos)); break; case 2: modelId = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: endtime = ProtoBufUtils.ReadInt64(ref readPos); break; case 4: zoneId = ProtoBufUtils.ReadInt64(ref readPos); break; default: break; } } } } public void Clear() { if(roleIds != null) { roleIds.Clear(); } modelId = 0; endtime = 0; zoneId = 0; } public List roleIds = new List(); public int modelId; public long endtime; public long zoneId; } public partial class ResCloneStep : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResCloneStep(this); } public const uint MsgID = 151113; 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: bigStep = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: smallStep = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: clonemodelId = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { bigStep = 0; smallStep = 0; clonemodelId = 0; } public int bigStep; public int smallStep; public int clonemodelId; } public partial class ResBuyEnterCloneTimes : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResBuyEnterCloneTimes(this); } public const uint MsgID = 151119; 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: cloneModelId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: times = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { cloneModelId = 0; times = 0; } public int cloneModelId; public int times; } public partial class itemInfo : 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 : modelId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : num = 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,modelId); ProtoBufUtils.WriteInt64(2,num); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { modelId = 0; num = 0; } public int modelId; public long num; } public partial class ResBravePeakRecord : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResBravePeakRecord(this); } public const uint MsgID = 151114; 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: floor = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: nowNum = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: needNum = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: if(info == null) { info = new List(); } info.Add(new itemInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); info[info.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { floor = 0; nowNum = 0; needNum = 0; if(info != null) { info.Clear(); } } public int floor; public int nowNum; public int needNum; public List info = new List(); } public partial class ResBravePeakSuccessOneFloorNotice : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResBravePeakSuccessOneFloorNotice(this); } public const uint MsgID = 151118; 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: curFloor = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: remainTime = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { curFloor = 0; remainTime = 0; } public int curFloor; public int remainTime; } public partial class ResBravePeakResultPanl : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResBravePeakResultPanl(this); } public const uint MsgID = 151115; 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: maxFloor = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: if(info == null) { info = new List(); } info.Add(new itemInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); info[info.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { maxFloor = 0; if(info != null) { info.Clear(); } } public int maxFloor; public List info = new List(); } public partial class ResBossStateResultPanl : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResBossStateResultPanl(this); } public const uint MsgID = 151120; 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: maxFloor = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: if(info == null) { info = new List(); } info.Add(new itemInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); info[info.Count - 1].ReadMessage(ref readPos, totalCount); break; case 3: state = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { maxFloor = 0; if(info != null) { info.Clear(); } state = false; } public int maxFloor; public List info = new List(); public bool state; } }