using System.Collections.Generic; using Thousandto.Plugins.Common; using Thousandto.Code.Logic.Network; namespace MSG_GenesisTemple { public partial class gtRoleInfo : 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 : career = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : level = 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,roleId); ProtoBufUtils.WriteString(2,name); ProtoBufUtils.WriteInt32(3,career); ProtoBufUtils.WriteInt32(4,level); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { roleId = 0; name = null; career = 0; level = 0; } public long roleId; public string name; public int career; public int level; } public partial class gtTopInfo : 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 : index = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : servername = ProtoBufUtils.ReadString(ref readPos); break; case 3 : overtime = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : if(roleInfo == null) { roleInfo = new List(); } roleInfo.Add(new gtRoleInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); roleInfo[roleInfo.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,index); ProtoBufUtils.WriteString(2,servername); ProtoBufUtils.WriteInt32(3,overtime); for (int i = 0; i < roleInfo.Count; i++) { if(roleInfo != null) { roleInfo[i].WriteMessage(4); } } ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { index = 0; servername = null; overtime = 0; if(roleInfo != null) { roleInfo.Clear(); } } public int index; public string servername; public int overtime; public List roleInfo = new List(); } public partial class bosstimes : 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 : bossId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : overtimes = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : maxtimes = 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,bossId); ProtoBufUtils.WriteInt32(2,overtimes); ProtoBufUtils.WriteInt32(3,maxtimes); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { bossId = 0; overtimes = 0; maxtimes = 0; } public int bossId; public int overtimes; public int maxtimes; } public partial class ReqGenesisTemplePanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 153201; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,typeId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { typeId = 0; } public int typeId; } public partial class G2PReqGenesisTemplePanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_G2PReqGenesisTemplePanel(this); } public const uint MsgID = 153301; 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: typeId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: roleId = ProtoBufUtils.ReadInt64(ref readPos); break; case 3: endtime = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: if(boss == null) { boss = new List(); } boss.Add(new bosstimes()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); boss[boss.Count - 1].ReadMessage(ref readPos, totalCount); break; case 5: weekReward = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { typeId = 0; roleId = 0; endtime = 0; if(boss != null) { boss.Clear(); } weekReward = false; } public int typeId; public long roleId; public int endtime; public List boss = new List(); public bool weekReward; } public partial class ResGenesisTemplePanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGenesisTemplePanel(this); } public const uint MsgID = 153101; 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: if(topInfo == null) { topInfo = new gtTopInfo(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); topInfo.ReadMessage(ref readPos, totalCount); break; case 3: typeId = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: if(boss == null) { boss = new List(); } boss.Add(new bosstimes()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); boss[boss.Count - 1].ReadMessage(ref readPos, totalCount); break; case 5: weekReward = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { endtime = 0; if(topInfo != null) { topInfo.Clear(); } typeId = 0; if(boss != null) { boss.Clear(); } weekReward = false; } public int endtime; public gtTopInfo topInfo; public int typeId; public List boss = new List(); public bool weekReward; } public partial class ReqGenesisTempleTopList : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 153202; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,typeId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { typeId = 0; } public int typeId; } public partial class G2PReqGenesisTempleTopList : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_G2PReqGenesisTempleTopList(this); } public const uint MsgID = 153302; 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: typeId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: roleId = ProtoBufUtils.ReadInt64(ref readPos); break; case 3: rcreateSid = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: serverId = ProtoBufUtils.ReadInt32(ref readPos); break; case 5: servername = ProtoBufUtils.ReadString(ref readPos); break; default: break; } } } } public void Clear() { typeId = 0; roleId = 0; rcreateSid = 0; serverId = 0; servername = null; } public int typeId; public long roleId; public int rcreateSid; public int serverId; public string servername; } public partial class ResGenesisTempleTopList : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGenesisTempleTopList(this); } public const uint MsgID = 153102; 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: typeId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: if(topInfo == null) { topInfo = new List(); } topInfo.Add(new gtTopInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); topInfo[topInfo.Count - 1].ReadMessage(ref readPos, totalCount); break; case 3: if(selfInfo == null) { selfInfo = new gtTopInfo(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); selfInfo.ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { typeId = 0; if(topInfo != null) { topInfo.Clear(); } if(selfInfo != null) { selfInfo.Clear(); } } public int typeId; public List topInfo = new List(); public gtTopInfo selfInfo; } public partial class ReqSubmitGenesisStone : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 153203; 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 ResSubmitGenesisStone : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResSubmitGenesisStone(this); } public const uint MsgID = 153103; 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 genesisScoreInfo : 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 : scoreRewardNo = 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,scoreRewardNo); ProtoBufUtils.WriteInt32(2,state); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { scoreRewardNo = 0; state = 0; } public int scoreRewardNo; public int state; } public partial class ReqGenesisScorePanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 153204; 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 ResGenesisScorePanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGenesisScorePanel(this); } public const uint MsgID = 153104; 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(scoreInfo == null) { scoreInfo = new List(); } scoreInfo.Add(new genesisScoreInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); scoreInfo[scoreInfo.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(scoreInfo != null) { scoreInfo.Clear(); } } public List scoreInfo = new List(); } public partial class G2PSubmitCloneOverInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_G2PSubmitCloneOverInfo(this); } public const uint MsgID = 153305; 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: overtime = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: if(roleInfo == null) { roleInfo = new List(); } roleInfo.Add(new gtRoleInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); roleInfo[roleInfo.Count - 1].ReadMessage(ref readPos, totalCount); break; case 4: serverId = ProtoBufUtils.ReadInt32(ref readPos); break; case 5: plat = ProtoBufUtils.ReadString(ref readPos); break; case 6: servername = ProtoBufUtils.ReadString(ref readPos); break; default: break; } } } } public void Clear() { type = 0; overtime = 0; if(roleInfo != null) { roleInfo.Clear(); } serverId = 0; plat = null; servername = null; } public int type; public int overtime; public List roleInfo = new List(); public int serverId; public string plat; public string servername; } public partial class P2GSubmitCloneOverInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_P2GSubmitCloneOverInfo(this); } public const uint MsgID = 153405; 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: state = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { type = 0; state = 0; } public int type; public int state; } public partial class G2PChangeRoleName : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_G2PChangeRoleName(this); } public const uint MsgID = 153306; 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: newName = ProtoBufUtils.ReadString(ref readPos); break; default: break; } } } } public void Clear() { roleId = 0; newName = null; } public long roleId; public string newName; } public partial class ResWorldLevelInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResWorldLevelInfo(this); } public const uint MsgID = 153106; 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: worldlevel = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: process = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { worldlevel = 0; process = 0; } public int worldlevel; public int process; } public partial class ResGenesisTempleCloneInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGenesisTempleCloneInfo(this); } public const uint MsgID = 153107; 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(bossIdLive == null) { bossIdLive = new List(); } bossIdLive.Add(new genesisScoreInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); bossIdLive[bossIdLive.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(bossIdLive != null) { bossIdLive.Clear(); } } public List bossIdLive = new List(); } }