using System.Collections.Generic; using Thousandto.Plugins.Common; using Thousandto.Code.Logic.Network; namespace MSG_EmperorShip { public partial class ReqOpenEmperorShipPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 169201; 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 ReqLevelUpShip : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 169202; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,shipId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { shipId = 0; } public int shipId; } public partial class ReqStarUpShip : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 169203; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,shipId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { shipId = 0; } public int shipId; } public partial class ReqActiveShip : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 169204; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,shipId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { shipId = 0; } public int shipId; } public partial class ReqFuLingShip : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 169205; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,shipId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { shipId = 0; } public int shipId; } public partial class ReqBreakeThrough : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 169206; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,shipId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { shipId = 0; } public int shipId; } public partial class ResEmperorShipInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResEmperorShipInfo(this); } public const uint MsgID = 169101; 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(ships == null) { ships = new List(); } ships.Add(new emperorShip()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); ships[ships.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(ships != null) { ships.Clear(); } } public List ships = new List(); } public partial class ResEmperorShipChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResEmperorShipChange(this); } public const uint MsgID = 169102; 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(ships == null) { ships = new emperorShip(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); ships.ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(ships != null) { ships.Clear(); } } public emperorShip ships; } public partial class emperorShip : 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 : configId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : level = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : star = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : fulingTopLimit = ProtoBufUtils.ReadInt32(ref readPos); break; case 5 : if(fulings == null) { fulings = new List(); } fulings.Add(new fulingInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); fulings[fulings.Count - 1].ReadMessage(ref readPos, totalCount); break; case 6 : fightPoint = 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,configId); ProtoBufUtils.WriteInt32(2,level); ProtoBufUtils.WriteInt32(3,star); ProtoBufUtils.WriteInt32(4,fulingTopLimit); for (int i = 0; i < fulings.Count; i++) { if(fulings != null) { fulings[i].WriteMessage(5); } } ProtoBufUtils.WriteInt32(6,fightPoint); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { configId = 0; level = 0; star = 0; fulingTopLimit = 0; if(fulings != null) { fulings.Clear(); } fightPoint = 0; } public int configId; public int level; public int star; public int fulingTopLimit; public List fulings = new List(); public int fightPoint; } public partial class fulingInfo : 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 : attrType = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : attrValue = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : index = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : attrBigType = 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,attrType); ProtoBufUtils.WriteInt32(2,attrValue); ProtoBufUtils.WriteInt32(3,index); ProtoBufUtils.WriteInt32(4,attrBigType); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { attrType = 0; attrValue = 0; index = 0; attrBigType = 0; } public int attrType; public int attrValue; public int index; public int attrBigType; } public partial class ReqOpenClonePanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 169207; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,cloneFloor); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { cloneFloor = 0; } public int cloneFloor; } public partial class ReqFollowBoss : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 169208; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,bossId); ProtoBufUtils.WriteInt32(2,type); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { bossId = 0; type = 0; } public int bossId; public int type; } public partial class ResCloneInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResCloneInfo(this); } public const uint MsgID = 169103; 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(info == null) { info = new cloneInfo(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); info.ReadMessage(ref readPos, totalCount); break; case 2: maxEnterNum = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: haveEnterNum = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { if(info != null) { info.Clear(); } maxEnterNum = 0; haveEnterNum = 0; } public cloneInfo info; public int maxEnterNum; public int haveEnterNum; } public partial class ResCloneInfoChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResCloneInfoChange(this); } public const uint MsgID = 169104; 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(info == null) { info = new cloneInfo(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); info.ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(info != null) { info.Clear(); } } public cloneInfo info; } public partial class ResFollowBoss : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResFollowBoss(this); } public const uint MsgID = 169105; 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: bossId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: type = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: isSuccess = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { bossId = 0; type = 0; isSuccess = false; } public int bossId; public int type; public bool isSuccess; } public partial class ResCurGodDamnedValue : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResCurGodDamnedValue(this); } public const uint MsgID = 169106; 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: value = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { value = 0; } public int value; } public partial class ResBeginCountDown : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResBeginCountDown(this); } public const uint MsgID = 169107; 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: remainTime = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { remainTime = 0; } public int remainTime; } public partial class ResCloneEnd : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResCloneEnd(this); } public const uint MsgID = 169108; 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 cloneInfo : 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 : boxNum = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : goldNum = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : randomBossNum = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : if(boss == null) { boss = new List(); } boss.Add(new bossInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); boss[boss.Count - 1].ReadMessage(ref readPos, totalCount); break; case 5 : cloneFloor = 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,boxNum); ProtoBufUtils.WriteInt32(2,goldNum); ProtoBufUtils.WriteInt32(3,randomBossNum); for (int i = 0; i < boss.Count; i++) { if(boss != null) { boss[i].WriteMessage(4); } } ProtoBufUtils.WriteInt32(5,cloneFloor); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { boxNum = 0; goldNum = 0; randomBossNum = 0; if(boss != null) { boss.Clear(); } cloneFloor = 0; } public int boxNum; public int goldNum; public int randomBossNum; public List boss = new List(); public int cloneFloor; } public partial class bossInfo : 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 : nextBirthTime = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : isFollowed = ProtoBufUtils.ReadBoolean(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,nextBirthTime); ProtoBufUtils.WriteBoolean(3,isFollowed); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { bossId = 0; nextBirthTime = 0; isFollowed = false; } public int bossId; public int nextBirthTime; public bool isFollowed; } }