using System.Collections.Generic; using Thousandto.Plugins.Common; using Thousandto.Code.Logic.Network; namespace MSG_Horse { public partial class ReqChangeHorse : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112204; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,horseLayer); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { horseLayer = 0; } public int horseLayer; } public partial class ReqChangeRideState : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112205; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,rideState); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { rideState = 0; } public int rideState; } public partial class ResChangeHorse : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResChangeHorse(this); } public const uint MsgID = 112105; 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: isChangeSuccess = ProtoBufUtils.ReadBoolean(ref readPos); break; case 2: afterHorseLayer = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { isChangeSuccess = false; afterHorseLayer = 0; } public bool isChangeSuccess; public int afterHorseLayer; } public partial class ResChangeRideState : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResChangeRideState(this); } public const uint MsgID = 112106; 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: playerId = ProtoBufUtils.ReadUint64(ref readPos); break; case 2: rideId = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { playerId = 0; rideId = 0; } public ulong playerId; public int rideId; } public partial class ReqFlyAction : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112207; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteBoolean(1,fly); ProtoBufUtils.WriteFloat(2,x); ProtoBufUtils.WriteFloat(3,y); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { fly = false; x = 0; y = 0; } public bool fly; public float x; public float y; } public partial class ResFlyActionRes : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResFlyActionRes(this); } public const uint MsgID = 112108; 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; case 2: fly = ProtoBufUtils.ReadBoolean(ref readPos); break; case 3: x = ProtoBufUtils.ReadFloat(ref readPos); break; case 4: y = ProtoBufUtils.ReadFloat(ref readPos); break; default: break; } } } } public void Clear() { roleId = 0; fly = false; x = 0; y = 0; } public ulong roleId; public bool fly; public float x; public float y; } public partial class ReqUpdateHight : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112208; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteFloat(1,high); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { high = 0; } public float high; } public partial class ResUpdateHightRes : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResUpdateHightRes(this); } public const uint MsgID = 112109; 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; case 2: high = ProtoBufUtils.ReadFloat(ref readPos); break; default: break; } } } } public void Clear() { roleId = 0; high = 0; } public ulong roleId; public float high; } public partial class ResActiveHorseInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResActiveHorseInfo(this); } public const uint MsgID = 112114; 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: horseId = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { horseId = 0; } public int horseId; } public partial class ReqInviteOtherPlayerForRide : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112216; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt64(1,invitedPlayerId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { invitedPlayerId = 0; } public long invitedPlayerId; } public partial class ResInviteMessageDisPatcher : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResInviteMessageDisPatcher(this); } public const uint MsgID = 112117; 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: inviteName = ProtoBufUtils.ReadString(ref readPos); break; case 2: invitePlayerId = ProtoBufUtils.ReadInt64(ref readPos); break; default: break; } } } } public void Clear() { inviteName = null; invitePlayerId = 0; } public string inviteName; public long invitePlayerId; } public partial class ReqInviteResult : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112217; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteBoolean(1,agreeOrRefuse); ProtoBufUtils.WriteInt64(2,invitePlayerId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { agreeOrRefuse = false; invitePlayerId = 0; } public bool agreeOrRefuse; public long invitePlayerId; } public partial class ResSameRideNoticeAll : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResSameRideNoticeAll(this); } public const uint MsgID = 112118; 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: driverId = ProtoBufUtils.ReadInt64(ref readPos); break; case 2: if(passengerIds == null) { passengerIds = new List<long>(); } passengerIds.Add(ProtoBufUtils.ReadInt64(ref readPos)); break; default: break; } } } } public void Clear() { driverId = 0; if(passengerIds != null) { passengerIds.Clear(); } } public long driverId; public List<long> passengerIds = new List<long>(); } public partial class ResSameRideDown : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResSameRideDown(this); } public const uint MsgID = 112119; 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: playerId = ProtoBufUtils.ReadInt64(ref readPos); break; default: break; } } } } public void Clear() { playerId = 0; } public long playerId; } public partial class ResMountChangeAssi : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResMountChangeAssi(this); } public const uint MsgID = 112120; 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: petModelId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: assistantId = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { petModelId = 0; assistantId = 0; } public int petModelId; public int assistantId; } public partial class ResMountEquipWear : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResMountEquipWear(this); } public const uint MsgID = 112121; 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: equipId = ProtoBufUtils.ReadFixed64(ref readPos); break; case 2: assistantId = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: cellId = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: equipModelId = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { equipId = 0; assistantId = 0; cellId = 0; equipModelId = 0; } public ulong equipId; public int assistantId; public int cellId; public int equipModelId; } public partial class ResMountEquipUnWear : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResMountEquipUnWear(this); } public const uint MsgID = 112122; 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: assistantId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: cellId = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { assistantId = 0; cellId = 0; } public int assistantId; public int cellId; } public partial class ResMountEquipStrength : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResMountEquipStrength(this); } public const uint MsgID = 112123; 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: assistantId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: cellId = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: strengthLv = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { assistantId = 0; cellId = 0; strengthLv = 0; } public int assistantId; public int cellId; public int strengthLv; } public partial class ResMountEquipSoul : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResMountEquipSoul(this); } public const uint MsgID = 112124; 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: assistantId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: cellId = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: soulLv = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { assistantId = 0; cellId = 0; soulLv = 0; } public int assistantId; public int cellId; public int soulLv; } public partial class ResMountEquipActiveInten : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResMountEquipActiveInten(this); } public const uint MsgID = 112125; 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: assistantId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: strengthActiveId = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { assistantId = 0; strengthActiveId = 0; } public int assistantId; public int strengthActiveId; } public partial class ResMountEquipActiveSoul : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResMountEquipActiveSoul(this); } public const uint MsgID = 112126; 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: assistantId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: soulActiveId = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { assistantId = 0; soulActiveId = 0; } public int assistantId; public int soulActiveId; } public partial class ResMountEquipSynthesis : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResMountEquipSynthesis(this); } public const uint MsgID = 112127; 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: success = ProtoBufUtils.ReadBoolean(ref readPos); break; case 2: assistantId = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: cellId = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: if(newEquip == null) { newEquip = new MSG_backpack.ItemInfo(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); newEquip.ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { success = false; assistantId = 0; cellId = 0; if(newEquip != null) { newEquip.Clear(); } } public bool success; public int assistantId; public int cellId; public MSG_backpack.ItemInfo newEquip; } public partial class ResMountEquipDecomposeSetting : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResMountEquipDecomposeSetting(this); } public const uint MsgID = 112128; 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: set = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { set = false; } public bool set; } public partial class ResHorseEquipList : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResHorseEquipList(this); } public const uint MsgID = 112129; 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: curLevel = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: curExp = ProtoBufUtils.ReadInt64(ref readPos); break; case 5: battleId = ProtoBufUtils.ReadInt32(ref readPos); break; case 6: funcOpen = ProtoBufUtils.ReadBoolean(ref readPos); break; case 7: if(assistantList == null) { assistantList = new List<HorseEquipInfo>(); } assistantList.Add(new HorseEquipInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); assistantList[assistantList.Count - 1].ReadMessage(ref readPos, totalCount); break; case 8: autoSet = ProtoBufUtils.ReadBoolean(ref readPos); break; case 9: autocolor = ProtoBufUtils.ReadInt32(ref readPos); break; case 10: autoStar = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { curLevel = 0; curExp = 0; battleId = 0; funcOpen = false; if(assistantList != null) { assistantList.Clear(); } autoSet = false; autocolor = 0; autoStar = 0; } public int curLevel; public long curExp; public int battleId; public bool funcOpen; public List<HorseEquipInfo> assistantList = new List<HorseEquipInfo>(); public bool autoSet; public int autocolor; public int autoStar; } public partial class HorseEquipInfo : 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 : assistantId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : petId = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : if(cellList == null) { cellList = new List<HorseEquipPart>(); } cellList.Add(new HorseEquipPart()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); cellList[cellList.Count - 1].ReadMessage(ref readPos, totalCount); break; case 4 : strengthActiveId = ProtoBufUtils.ReadInt32(ref readPos); break; case 5 : soulActiveId = ProtoBufUtils.ReadInt32(ref readPos); break; case 6 : open = 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,assistantId); ProtoBufUtils.WriteInt32(2,petId); for (int i = 0; i < cellList.Count; i++) { if(cellList != null) { cellList[i].WriteMessage(3); } } ProtoBufUtils.WriteInt32(4,strengthActiveId); ProtoBufUtils.WriteInt32(5,soulActiveId); ProtoBufUtils.WriteBoolean(6,open); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { assistantId = 0; petId = 0; if(cellList != null) { cellList.Clear(); } strengthActiveId = 0; soulActiveId = 0; open = false; } public int assistantId; public int petId; public List<HorseEquipPart> cellList = new List<HorseEquipPart>(); public int strengthActiveId; public int soulActiveId; public bool open; } public partial class HorseEquipPart : 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(equip == null) { equip = new MSG_backpack.ItemInfo(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); equip.ReadMessage(ref readPos, totalCount); break; case 3 : strengthLv = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : soulLv = ProtoBufUtils.ReadInt32(ref readPos); break; case 5 : open = 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,id); if(equip != null) { equip.WriteMessage(2); } ProtoBufUtils.WriteInt32(3,strengthLv); ProtoBufUtils.WriteInt32(4,soulLv); ProtoBufUtils.WriteBoolean(5,open); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { id = 0; if(equip != null) { equip.Clear(); } strengthLv = 0; soulLv = 0; open = false; } public int id; public MSG_backpack.ItemInfo equip; public int strengthLv; public int soulLv; public bool open; } public partial class ReqMountChangeAssi : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112218; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,mountModelId); ProtoBufUtils.WriteInt32(2,assistantId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { mountModelId = 0; assistantId = 0; } public int mountModelId; public int assistantId; } public partial class ReqMountEquipWear : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112219; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteFixed64(1,equipId); ProtoBufUtils.WriteInt32(2,assistantId); ProtoBufUtils.WriteInt32(3,cellId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { equipId = 0; assistantId = 0; cellId = 0; } public ulong equipId; public int assistantId; public int cellId; } public partial class ReqMountEquipUnWear : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112220; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,assistantId); ProtoBufUtils.WriteInt32(2,cellId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { assistantId = 0; cellId = 0; } public int assistantId; public int cellId; } public partial class ReqMountEquipStrength : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112221; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,assistantId); ProtoBufUtils.WriteInt32(2,cellId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { assistantId = 0; cellId = 0; } public int assistantId; public int cellId; } public partial class ReqMountEquipSoul : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112222; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,assistantId); ProtoBufUtils.WriteInt32(2,cellId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { assistantId = 0; cellId = 0; } public int assistantId; public int cellId; } public partial class ReqMountEquipActiveInten : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112223; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,assistantId); ProtoBufUtils.WriteInt32(2,strengthActiveId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { assistantId = 0; strengthActiveId = 0; } public int assistantId; public int strengthActiveId; } public partial class ReqMountEquipActiveSoul : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112224; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,assistantId); ProtoBufUtils.WriteInt32(2,soulActiveId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { assistantId = 0; soulActiveId = 0; } public int assistantId; public int soulActiveId; } public partial class ReqMountEquipSynthesis : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112225; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,assistantId); ProtoBufUtils.WriteInt32(2,cellId); for (int i = 0; i < equips.Count; i++) { ProtoBufUtils.WriteInt64(3,equips[i]); } bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { assistantId = 0; cellId = 0; if(equips != null) { equips.Clear(); } } public int assistantId; public int cellId; public List<long> equips = new List<long>(); } public partial class ReqMountEquipDecompose : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112226; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); for (int i = 0; i < equipId.Count; i++) { ProtoBufUtils.WriteFixed64(1,equipId[i]); } bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { if(equipId != null) { equipId.Clear(); } } public List<ulong> equipId = new List<ulong>(); } public partial class ReqMountEquipDecomposeSetting : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112227; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteBoolean(1,set); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { set = false; } public bool set; } public partial class ReqActiveMountEquipSlot : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 112228; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,slotId); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { slotId = 0; } public int slotId; } }