Files
Main/Assets/Code/Logic/_NetMessage/Messages/HolyEquipEx.cs

674 lines
22 KiB
C#
Raw Normal View History

2025-01-25 04:38:09 +08:00
using System.Collections.Generic;
using Thousandto.Plugins.Common;
using Thousandto.Code.Logic.Network;
namespace MSG_HolyEquip
{
public partial class HolyEquipItem : 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 :
uid = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 2 :
itemId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3 :
isBind = 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.WriteUint64(1,uid);
ProtoBufUtils.WriteInt32(2,itemId);
ProtoBufUtils.WriteBoolean(3,isBind);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
uid = 0;
itemId = 0;
isBind = false;
}
public ulong uid;
public int itemId;
public bool isBind;
}
public partial class HolyEquipPart : 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 :
part = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
level = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3 :
if(holyEquipItem == null)
{
holyEquipItem = new HolyEquipItem();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
holyEquipItem.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,part);
ProtoBufUtils.WriteInt32(2,level);
if(holyEquipItem != null)
{
holyEquipItem.WriteMessage(3);
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
part = 0;
level = 0;
if(holyEquipItem != null)
{
holyEquipItem.Clear();
}
}
public int part;
public int level;
public HolyEquipItem holyEquipItem;
}
public partial class HolySoulInfo : 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 :
itemId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
useNum = 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,itemId);
ProtoBufUtils.WriteInt32(2,useNum);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
itemId = 0;
useNum = 0;
}
public int itemId;
public int useNum;
}
public partial class ResOnlineInit : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResOnlineInit(this);
}
public const uint MsgID = 183101;
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(holyBagItemList == null)
{
holyBagItemList = new List<HolyEquipItem>();
}
holyBagItemList.Add(new HolyEquipItem());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
holyBagItemList[holyBagItemList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 2:
if(holyEquipPartList == null)
{
holyEquipPartList = new List<HolyEquipPart>();
}
holyEquipPartList.Add(new HolyEquipPart());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
holyEquipPartList[holyEquipPartList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 3:
if(holySoulInfoList == null)
{
holySoulInfoList = new List<HolySoulInfo>();
}
holySoulInfoList.Add(new HolySoulInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
holySoulInfoList[holySoulInfoList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(holyBagItemList != null)
{
holyBagItemList.Clear();
}
if(holyEquipPartList != null)
{
holyEquipPartList.Clear();
}
if(holySoulInfoList != null)
{
holySoulInfoList.Clear();
}
}
public List<HolyEquipItem> holyBagItemList = new List<HolyEquipItem>();
public List<HolyEquipPart> holyEquipPartList = new List<HolyEquipPart>();
public List<HolySoulInfo> holySoulInfoList = new List<HolySoulInfo>();
}
public partial class ReqInlayHoly : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 183201;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteUint64(1,UID);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
UID = 0;
}
public ulong UID;
}
public partial class ResInlayHolyReuslt : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResInlayHolyReuslt(this);
}
public const uint MsgID = 183102;
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(holyPart == null)
{
holyPart = new HolyEquipPart();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
holyPart.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(holyPart != null)
{
holyPart.Clear();
}
}
public HolyEquipPart holyPart;
}
public partial class ReqCompoundHoly : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 183202;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,id);
for (int i = 0; i < equipIds.Count; i++)
{
ProtoBufUtils.WriteUint64(2,equipIds[i]);
}
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
id = 0;
if(equipIds != null)
{
equipIds.Clear();
}
}
public int id;
public List<ulong> equipIds = new List<ulong>();
}
public partial class ReqIntensifyHolyPart : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 183203;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,part);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
part = 0;
}
public int part;
}
public partial class ResIntensifyHolyPartResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResIntensifyHolyPartResult(this);
}
public const uint MsgID = 183104;
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(holyPart == null)
{
holyPart = new HolyEquipPart();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
holyPart.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(holyPart != null)
{
holyPart.Clear();
}
}
public HolyEquipPart holyPart;
}
public partial class ReqUseHolySoul : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 183204;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,itemId);
ProtoBufUtils.WriteInt32(2,useNum);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
itemId = 0;
useNum = 0;
}
public int itemId;
public int useNum;
}
public partial class ResUseHolySoulResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResUseHolySoulResult(this);
}
public const uint MsgID = 183105;
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(holySoulData == null)
{
holySoulData = new HolySoulInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
holySoulData.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(holySoulData != null)
{
holySoulData.Clear();
}
}
public HolySoulInfo holySoulData;
}
public partial class ResDeleteHoly : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResDeleteHoly(this);
}
public const uint MsgID = 183106;
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(deleteUID == null)
{
deleteUID = new List<ulong>();
}
deleteUID.Add(ProtoBufUtils.ReadUint64(ref readPos));
break;
case 2:
reason = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(deleteUID != null)
{
deleteUID.Clear();
}
reason = 0;
}
public List<ulong> deleteUID = new List<ulong>();
public int reason;
}
public partial class ResAddHoly : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResAddHoly(this);
}
public const uint MsgID = 183107;
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(addholyitem == null)
{
addholyitem = new List<HolyEquipItem>();
}
addholyitem.Add(new HolyEquipItem());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
addholyitem[addholyitem.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 2:
reason = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(addholyitem != null)
{
addholyitem.Clear();
}
reason = 0;
}
public List<HolyEquipItem> addholyitem = new List<HolyEquipItem>();
public int reason;
}
public partial class ReqResolveHoly : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 183205;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
for (int i = 0; i < uids.Count; i++)
{
ProtoBufUtils.WriteInt64(1,uids[i]);
}
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
if(uids != null)
{
uids.Clear();
}
}
public List<long> uids = new List<long>();
}
public partial class ReqSetAutoResolve : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 183206;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteBoolean(1,isAuto);
ProtoBufUtils.WriteInt32(2,quality);
ProtoBufUtils.WriteInt32(3,grade);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
isAuto = false;
quality = 0;
grade = 0;
}
public bool isAuto;
public int quality;
public int grade;
}
public partial class ResHolyEquipFightPower : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResHolyEquipFightPower(this);
}
public const uint MsgID = 183108;
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:
fightPower = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
fightPower = 0;
}
public int fightPower;
}
}