using System.Collections.Generic; using Thousandto.Plugins.Common; using Thousandto.Code.Logic.Network; namespace MSG_Skill { public partial class ResPassiveSkill : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResPassiveSkill(this); } public const uint MsgID = 114111; 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(skillID == null) { skillID = new List(); } skillID.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; default: break; } } } } public void Clear() { if(skillID != null) { skillID.Clear(); } } public List skillID = new List(); } public partial class ResUpdateSkill : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResUpdateSkill(this); } public const uint MsgID = 114112; 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: skillID = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: type = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { skillID = 0; type = 0; } public int skillID; public int type; } public partial class ResSkillOnline : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResSkillOnline(this); } public const uint MsgID = 114113; 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: cellLevel = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: if(skillIds == null) { skillIds = new List(); } skillIds.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; case 3: playedSkillStr = ProtoBufUtils.ReadString(ref readPos); break; case 4: if(skillMeridianList == null) { skillMeridianList = new List(); } skillMeridianList.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; case 5: selectMentalType = ProtoBufUtils.ReadInt32(ref readPos); break; case 6: resetMentalTimes = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { cellLevel = 0; if(skillIds != null) { skillIds.Clear(); } playedSkillStr = null; if(skillMeridianList != null) { skillMeridianList.Clear(); } selectMentalType = 0; resetMentalTimes = 0; } public int cellLevel; public List skillIds = new List(); public string playedSkillStr; public List skillMeridianList = new List(); public int selectMentalType; public int resetMentalTimes; } public partial class ReqUpCell : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 114209; 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 ReqUpSkillStar : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 114210; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,skillID); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { skillID = 0; } public int skillID; } public partial class ResUpCell : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResUpCell(this); } public const uint MsgID = 114114; 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: level = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { level = 0; } public int level; } public partial class ResUpSkillStar : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResUpSkillStar(this); } public const uint MsgID = 114115; 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: oldSkillID = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: newSkillID = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { oldSkillID = 0; newSkillID = 0; } public int oldSkillID; public int newSkillID; } public partial class ReqActivateMeridian : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 114211; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,meridianID); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { meridianID = 0; } public int meridianID; } public partial class ResActivateMeridian : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResActivateMeridian(this); } public const uint MsgID = 114116; 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: meridianID = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { meridianID = 0; } public int meridianID; } public partial class ReqSaveFightSkill : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 114212; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteString(1,playedSkillStr); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { playedSkillStr = null; } public string playedSkillStr; } public partial class ReqResetMeridianSkill : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 114213; 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 ResResetMeridianSkillResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResResetMeridianSkillResult(this); } public const uint MsgID = 114117; 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 ReqSelectMentalType : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 114214; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,mentalType); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { mentalType = 0; } public int mentalType; } public partial class ResSelectMentalType : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResSelectMentalType(this); } public const uint MsgID = 114118; 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: mentalType = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: resetMentalTimes = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { mentalType = 0; resetMentalTimes = 0; } public int mentalType; public int resetMentalTimes; } public partial class ReqRestMentalType : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 114215; 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() { } } }