using System.Collections.Generic; using Thousandto.Plugins.Common; using Thousandto.Code.Logic.Network; namespace MSG_WorldHelp { public partial class Player : 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 : name = ProtoBufUtils.ReadString(ref readPos); break; case 3 : level = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : career = ProtoBufUtils.ReadInt32(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,roleID); ProtoBufUtils.WriteString(2,name); ProtoBufUtils.WriteInt32(3,level); ProtoBufUtils.WriteInt32(4,career); if(head != null) { head.WriteMessage(5); } ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { roleID = 0; name = null; level = 0; career = 0; if(head != null) { head.Clear(); } } public long roleID; public string name; public int level; public int career; public MSG_Common.HeadAttribute head; } public partial class WorldHelp : 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 : if(player == null) { player = new Player(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); player.ReadMessage(ref readPos, totalCount); break; case 3 : bossID = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : helpNum = ProtoBufUtils.ReadInt32(ref readPos); break; case 5 : mapId = ProtoBufUtils.ReadInt32(ref readPos); break; case 6 : reqTime = 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); if(player != null) { player.WriteMessage(2); } ProtoBufUtils.WriteInt32(3,bossID); ProtoBufUtils.WriteInt32(4,helpNum); ProtoBufUtils.WriteInt32(5,mapId); ProtoBufUtils.WriteInt64(6,reqTime); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { id = 0; if(player != null) { player.Clear(); } bossID = 0; helpNum = 0; mapId = 0; reqTime = 0; } public int id; public Player player; public int bossID; public int helpNum; public int mapId; public long reqTime; } public partial class GuildTaskHelp : 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 : if(player == null) { player = new Player(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); player.ReadMessage(ref readPos, totalCount); break; case 3 : taskId = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : teamId = ProtoBufUtils.ReadInt64(ref readPos); break; case 5 : helpNum = 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); if(player != null) { player.WriteMessage(2); } ProtoBufUtils.WriteInt32(3,taskId); ProtoBufUtils.WriteInt64(4,teamId); ProtoBufUtils.WriteInt32(5,helpNum); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { id = 0; if(player != null) { player.Clear(); } taskId = 0; teamId = 0; helpNum = 0; } public int id; public Player player; public int taskId; public long teamId; public int helpNum; } public partial class ReqWorldHelp : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 184201; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt64(1,bossCode); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { bossCode = 0; } public long bossCode; } public partial class ReqWorldHelpList : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 184202; 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 ResWorldHelp : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResWorldHelp(this); } public const uint MsgID = 184101; 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(helps == null) { helps = new List(); } helps.Add(new WorldHelp()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); helps[helps.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: if(taskHelps == null) { taskHelps = new List(); } taskHelps.Add(new GuildTaskHelp()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); taskHelps[taskHelps.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(helps != null) { helps.Clear(); } if(taskHelps != null) { taskHelps.Clear(); } } public List helps = new List(); public List taskHelps = new List(); } public partial class SyncWorldHelp : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_SyncWorldHelp(this); } public const uint MsgID = 184102; 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 ReqAtLastHelp : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 184203; 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 ResAtLastHelp : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResAtLastHelp(this); } public const uint MsgID = 184105; 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(players == null) { players = new List(); } players.Add(new Player()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); players[players.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: id = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: bossID = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: mapId = ProtoBufUtils.ReadInt32(ref readPos); break; case 5: type = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { if(players != null) { players.Clear(); } id = 0; bossID = 0; mapId = 0; type = 0; } public List players = new List(); public int id; public int bossID; public int mapId; public int type; } public partial class ReqThkHelp : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 184204; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,id); ProtoBufUtils.WriteString(2,words); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { id = 0; words = null; } public int id; public string words; } public partial class ResThkHelp : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResThkHelp(this); } public const uint MsgID = 184106; 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(player == null) { player = new Player(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); player.ReadMessage(ref readPos, totalCount); break; case 2: words = ProtoBufUtils.ReadString(ref readPos); break; default: break; } } } } public void Clear() { if(player != null) { player.Clear(); } words = null; } public Player player; public string words; } public partial class SyncPrestige : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_SyncPrestige(this); } public const uint MsgID = 184107; 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: prestige = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { prestige = 0; } public int prestige; } public partial class ReqCancelHelp : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 184205; 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 SyncHelpTarget : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_SyncHelpTarget(this); } public const uint MsgID = 184108; 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; case 2: bossID = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { name = null; bossID = 0; } public string name; public int bossID; } public partial class ReqJoinHelp : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 184206; 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 ReqGuildTaskHelp : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 184207; 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 ReqDieCallHelp : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 184208; 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 ResDieCallHelp : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResDieCallHelp(this); } public const uint MsgID = 184109; 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(player == null) { player = new Player(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); player.ReadMessage(ref readPos, totalCount); break; case 2: dailyId = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: cloneId = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: x = ProtoBufUtils.ReadFloat(ref readPos); break; case 5: y = ProtoBufUtils.ReadFloat(ref readPos); break; default: break; } } } } public void Clear() { if(player != null) { player.Clear(); } dailyId = 0; cloneId = 0; x = 0; y = 0; } public Player player; public int dailyId; public int cloneId; public float x; public float y; } }