using System.Collections.Generic; using Thousandto.Plugins.Common; using Thousandto.Code.Logic.Network; namespace MSG_GuildBattle { public partial class GuildBattleRate : 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 : guildName = ProtoBufUtils.ReadString(ref readPos); break; case 2 : type = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : flag = 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.WriteString(1,guildName); ProtoBufUtils.WriteInt32(2,type); ProtoBufUtils.WriteInt32(3,flag); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { guildName = null; type = 0; flag = 0; } public string guildName; public int type; public int flag; } public partial class GuildBattleCamp : 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 : guildName = ProtoBufUtils.ReadString(ref readPos); break; case 2 : icon = 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.WriteString(1,guildName); ProtoBufUtils.WriteInt32(2,icon); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { guildName = null; icon = 0; } public string guildName; public int icon; } public partial class GuildBattleItem : 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 : 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,id); ProtoBufUtils.WriteInt64(2,num); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { id = 0; num = 0; } public int id; public long num; } public partial class GuildBattleGather : 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 : monsterId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : time = 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,monsterId); ProtoBufUtils.WriteInt64(2,time); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { monsterId = 0; time = 0; } public int monsterId; public long time; } public partial class GuildBattleMember : 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 : name = ProtoBufUtils.ReadString(ref readPos); break; case 2 : career = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : record = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : killNum = ProtoBufUtils.ReadInt32(ref readPos); break; case 5 : destroyNum = ProtoBufUtils.ReadInt32(ref readPos); break; case 6 : repairNum = ProtoBufUtils.ReadInt32(ref readPos); break; case 7 : breakNum = 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.WriteString(1,name); ProtoBufUtils.WriteInt32(2,career); ProtoBufUtils.WriteInt32(3,record); ProtoBufUtils.WriteInt32(4,killNum); ProtoBufUtils.WriteInt32(5,destroyNum); ProtoBufUtils.WriteInt32(6,repairNum); ProtoBufUtils.WriteInt32(7,breakNum); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { name = null; career = 0; record = 0; killNum = 0; destroyNum = 0; repairNum = 0; breakNum = 0; } public string name; public int career; public int record; public int killNum; public int destroyNum; public int repairNum; public int breakNum; } public partial class GuildBattleRecord : 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 : guildName = ProtoBufUtils.ReadString(ref readPos); break; case 2 : guildScore = ProtoBufUtils.ReadUint64(ref readPos); break; case 3 : res = ProtoBufUtils.ReadBoolean(ref readPos); break; case 4 : if(members == null) { members = new List(); } members.Add(new GuildBattleMember()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); members[members.Count - 1].ReadMessage(ref readPos, totalCount); break; case 5 : icon = 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.WriteString(1,guildName); ProtoBufUtils.WriteUint64(2,guildScore); ProtoBufUtils.WriteBoolean(3,res); for (int i = 0; i < members.Count; i++) { if(members != null) { members[i].WriteMessage(4); } } ProtoBufUtils.WriteInt32(5,icon); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { guildName = null; guildScore = 0; res = false; if(members != null) { members.Clear(); } icon = 0; } public string guildName; public ulong guildScore; public bool res; public List members = new List(); public int icon; } public partial class GuildBattleMemberRecord : 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 : roelId = ProtoBufUtils.ReadUint64(ref readPos); break; case 2 : name = ProtoBufUtils.ReadString(ref readPos); break; case 3 : title = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : career = ProtoBufUtils.ReadInt32(ref readPos); break; case 5 : record = ProtoBufUtils.ReadInt32(ref readPos); break; case 6 : killRank = ProtoBufUtils.ReadInt32(ref readPos); break; case 7 : isBast = ProtoBufUtils.ReadBoolean(ref readPos); break; case 8 : isAttCity = ProtoBufUtils.ReadBoolean(ref readPos); break; case 9 : 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.WriteUint64(1,roelId); ProtoBufUtils.WriteString(2,name); ProtoBufUtils.WriteInt32(3,title); ProtoBufUtils.WriteInt32(4,career); ProtoBufUtils.WriteInt32(5,record); ProtoBufUtils.WriteInt32(6,killRank); ProtoBufUtils.WriteBoolean(7,isBast); ProtoBufUtils.WriteBoolean(8,isAttCity); if(head != null) { head.WriteMessage(9); } ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { roelId = 0; name = null; title = 0; career = 0; record = 0; killRank = 0; isBast = false; isAttCity = false; if(head != null) { head.Clear(); } } public ulong roelId; public string name; public int title; public int career; public int record; public int killRank; public bool isBast; public bool isAttCity; public MSG_Common.HeadAttribute head; } public partial class ReqGuildBattleRateList : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 526201; 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 ReqGuildBattleRecordList : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 526202; 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 ReqGuildBattleRecordWin : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 526203; 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 ReqGuildBattleRecordReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 526204; 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 ReqGuildBattleBack : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 526205; 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 ReqGuildBattleLike : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 526206; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteUint64(1,roleId); ProtoBufUtils.WriteInt32(2,type); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { roleId = 0; type = 0; } public ulong roleId; public int type; } public partial class ReqGuildBattleResult : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 526207; 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 ReqGuildBattleStat : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 526208; 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 ReqGuildBattleCall : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 526209; 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 ResGuildBattleRateList : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGuildBattleRateList(this); } public const uint MsgID = 526101; 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(rateList == null) { rateList = new List(); } rateList.Add(new GuildBattleRate()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); rateList[rateList.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(rateList != null) { rateList.Clear(); } } public List rateList = new List(); } public partial class ResGuildBattleRecordList : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGuildBattleRecordList(this); } public const uint MsgID = 526102; 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(recordList == null) { recordList = new List(); } recordList.Add(new GuildBattleRecord()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); recordList[recordList.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(recordList != null) { recordList.Clear(); } } public List recordList = new List(); } public partial class ResGuildBattleWin : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGuildBattleWin(this); } public const uint MsgID = 526103; 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: guildId = ProtoBufUtils.ReadUint64(ref readPos); break; case 2: guildName = ProtoBufUtils.ReadString(ref readPos); break; case 3: type = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: num = ProtoBufUtils.ReadInt32(ref readPos); break; case 5: hasGet = ProtoBufUtils.ReadInt32(ref readPos); break; case 6: beguildName = ProtoBufUtils.ReadString(ref readPos); break; default: break; } } } } public void Clear() { guildId = 0; guildName = null; type = 0; num = 0; hasGet = 0; beguildName = null; } public ulong guildId; public string guildName; public int type; public int num; public int hasGet; public string beguildName; } public partial class ResGuildBattleRecordReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGuildBattleRecordReward(this); } public const uint MsgID = 526104; 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 ResGuildBattlePanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGuildBattlePanel(this); } public const uint MsgID = 526105; 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: camp = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: buildId = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: buildPc = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: repairBuildId = ProtoBufUtils.ReadInt32(ref readPos); break; case 5: if(gathers == null) { gathers = new List(); } gathers.Add(new GuildBattleGather()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); gathers[gathers.Count - 1].ReadMessage(ref readPos, totalCount); break; case 6: if(stopRepairs == null) { stopRepairs = new List(); } stopRepairs.Add(new BattleEvent()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); stopRepairs[stopRepairs.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { camp = 0; buildId = 0; buildPc = 0; repairBuildId = 0; if(gathers != null) { gathers.Clear(); } if(stopRepairs != null) { stopRepairs.Clear(); } } public int camp; public int buildId; public int buildPc; public int repairBuildId; public List gathers = new List(); public List stopRepairs = new List(); } public partial class ResGuildBattleTranCamp : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGuildBattleTranCamp(this); } public const uint MsgID = 526106; 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(defCamp == null) { defCamp = new GuildBattleCamp(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); defCamp.ReadMessage(ref readPos, totalCount); break; case 2: if(attCamps == null) { attCamps = new List(); } attCamps.Add(new GuildBattleCamp()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); attCamps[attCamps.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(defCamp != null) { defCamp.Clear(); } if(attCamps != null) { attCamps.Clear(); } } public GuildBattleCamp defCamp; public List attCamps = new List(); } public partial class ResGuildBattleLike : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGuildBattleLike(this); } public const uint MsgID = 526107; 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.ReadUint64(ref readPos); break; default: break; } } } } public void Clear() { roleId = 0; } public ulong roleId; } public partial class ResGuildBattleEnd : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGuildBattleEnd(this); } public const uint MsgID = 526108; 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 GuildBattleMemberRecord()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); records[records.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: if(items == null) { items = new List(); } items.Add(new GuildBattleItem()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); items[items.Count - 1].ReadMessage(ref readPos, totalCount); break; case 3: if(personal == null) { personal = new List(); } personal.Add(new GuildBattleItem()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); personal[personal.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(records != null) { records.Clear(); } if(items != null) { items.Clear(); } if(personal != null) { personal.Clear(); } } public List records = new List(); public List items = new List(); public List personal = new List(); } public partial class ResGuildBattleResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGuildBattleResult(this); } public const uint MsgID = 526109; 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: rank = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: record = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: type = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: win = ProtoBufUtils.ReadInt32(ref readPos); break; case 5: res = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { rank = 0; record = 0; type = 0; win = 0; res = 0; } public int rank; public int record; public int type; public int win; public int res; } public partial class ResGuildBattleRedPoint : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGuildBattleRedPoint(this); } public const uint MsgID = 526110; 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: redPoint = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { redPoint = false; } public bool redPoint; } public partial class ResGuildBattleKillNum : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGuildBattleKillNum(this); } public const uint MsgID = 526111; 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: attId = ProtoBufUtils.ReadInt64(ref readPos); break; case 2: attName = ProtoBufUtils.ReadString(ref readPos); break; case 3: attCareer = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: defId = ProtoBufUtils.ReadInt64(ref readPos); break; case 5: defName = ProtoBufUtils.ReadString(ref readPos); break; case 6: defCareer = ProtoBufUtils.ReadInt32(ref readPos); break; case 7: cfgId = ProtoBufUtils.ReadInt32(ref readPos); break; case 8: if(attHead == null) { attHead = new MSG_Common.HeadAttribute(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); attHead.ReadMessage(ref readPos, totalCount); break; case 9: if(defHead == null) { defHead = new MSG_Common.HeadAttribute(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); defHead.ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { attId = 0; attName = null; attCareer = 0; defId = 0; defName = null; defCareer = 0; cfgId = 0; if(attHead != null) { attHead.Clear(); } if(defHead != null) { defHead.Clear(); } } public long attId; public string attName; public int attCareer; public long defId; public string defName; public int defCareer; public int cfgId; public MSG_Common.HeadAttribute attHead; public MSG_Common.HeadAttribute defHead; } public partial class ResGuildBattleCall : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGuildBattleCall(this); } public const uint MsgID = 526112; 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: name = ProtoBufUtils.ReadString(ref readPos); break; default: break; } } } } public void Clear() { name = null; } public string name; } public partial class ResGuildBattleGatherUpdate : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGuildBattleGatherUpdate(this); } public const uint MsgID = 526113; 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(gather == null) { gather = new GuildBattleGather(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); gather.ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(gather != null) { gather.Clear(); } } public GuildBattleGather gather; } public partial class BattleEvent : 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 : start = 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,start); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { modelId = 0; start = 0; } public int modelId; public long start; } public partial class ResGuildBattleExp : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGuildBattleExp(this); } public const uint MsgID = 526115; 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: expReward = ProtoBufUtils.ReadInt64(ref readPos); break; default: break; } } } } public void Clear() { expReward = 0; } public long expReward; } public partial class ReqSendBulletScreen : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 526216; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteString(1,context); ProtoBufUtils.WriteInt32(2,type); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { context = null; type = 0; } public string context; public int type; } public partial class ResSendBulletScreen : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResSendBulletScreen(this); } public const uint MsgID = 526116; 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: roleCareer = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: roleName = ProtoBufUtils.ReadString(ref readPos); break; case 4: context = ProtoBufUtils.ReadString(ref readPos); break; case 5: type = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { roleId = 0; roleCareer = 0; roleName = null; context = null; type = 0; } public long roleId; public int roleCareer; public string roleName; public string context; public int type; } }