619 lines
21 KiB
C#
619 lines
21 KiB
C#
|
using System.Collections.Generic;
|
||
|
using Thousandto.Plugins.Common;
|
||
|
using Thousandto.Code.Logic.Network;
|
||
|
|
||
|
namespace MSG_UnrealEquip
|
||
|
{
|
||
|
public partial class UnrealEquipItem : 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.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
itemModelId = 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,itemId);
|
||
|
ProtoBufUtils.WriteInt32(2,itemModelId);
|
||
|
ProtoBufUtils.WriteBoolean(3,isbind);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
itemId = 0;
|
||
|
itemModelId = 0;
|
||
|
isbind = false;
|
||
|
}
|
||
|
public ulong itemId;
|
||
|
public int itemModelId;
|
||
|
public bool isbind;
|
||
|
}
|
||
|
public partial class UnrealEquipPart : 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 :
|
||
|
if(unrealEquipItem == null)
|
||
|
{
|
||
|
unrealEquipItem = new UnrealEquipItem();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
unrealEquipItem.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);
|
||
|
if(unrealEquipItem != null)
|
||
|
{
|
||
|
unrealEquipItem.WriteMessage(2);
|
||
|
}
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
part = 0;
|
||
|
if(unrealEquipItem != null)
|
||
|
{
|
||
|
unrealEquipItem.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int part;
|
||
|
public UnrealEquipItem unrealEquipItem;
|
||
|
}
|
||
|
public partial class UnrealSoulInfo : 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 = 539101;
|
||
|
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(unrealBagItemList == null)
|
||
|
{
|
||
|
unrealBagItemList = new List<UnrealEquipItem>();
|
||
|
}
|
||
|
unrealBagItemList.Add(new UnrealEquipItem());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
unrealBagItemList[unrealBagItemList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 2:
|
||
|
if(unrealEquipPartList == null)
|
||
|
{
|
||
|
unrealEquipPartList = new List<UnrealEquipPart>();
|
||
|
}
|
||
|
unrealEquipPartList.Add(new UnrealEquipPart());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
unrealEquipPartList[unrealEquipPartList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 3:
|
||
|
if(unrealSoulInfoList == null)
|
||
|
{
|
||
|
unrealSoulInfoList = new List<UnrealSoulInfo>();
|
||
|
}
|
||
|
unrealSoulInfoList.Add(new UnrealSoulInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
unrealSoulInfoList[unrealSoulInfoList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(unrealBagItemList != null)
|
||
|
{
|
||
|
unrealBagItemList.Clear();
|
||
|
}
|
||
|
if(unrealEquipPartList != null)
|
||
|
{
|
||
|
unrealEquipPartList.Clear();
|
||
|
}
|
||
|
if(unrealSoulInfoList != null)
|
||
|
{
|
||
|
unrealSoulInfoList.Clear();
|
||
|
}
|
||
|
}
|
||
|
public List<UnrealEquipItem> unrealBagItemList = new List<UnrealEquipItem>();
|
||
|
public List<UnrealEquipPart> unrealEquipPartList = new List<UnrealEquipPart>();
|
||
|
public List<UnrealSoulInfo> unrealSoulInfoList = new List<UnrealSoulInfo>();
|
||
|
}
|
||
|
public partial class ReqInlayUnreal : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 539201;
|
||
|
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 ResInlayUnrealReuslt : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResInlayUnrealReuslt(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 539102;
|
||
|
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(unrealPart == null)
|
||
|
{
|
||
|
unrealPart = new UnrealEquipPart();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
unrealPart.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(unrealPart != null)
|
||
|
{
|
||
|
unrealPart.Clear();
|
||
|
}
|
||
|
}
|
||
|
public UnrealEquipPart unrealPart;
|
||
|
}
|
||
|
public partial class UnrealSyncItem : 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 :
|
||
|
num = 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.WriteUint64(1,uid);
|
||
|
ProtoBufUtils.WriteInt32(2,num);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
uid = 0;
|
||
|
num = 0;
|
||
|
}
|
||
|
public ulong uid;
|
||
|
public int num;
|
||
|
}
|
||
|
public partial class ReqCompoundUnreal : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 539202;
|
||
|
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]);
|
||
|
}
|
||
|
for (int i = 0; i < itemList.Count; i++)
|
||
|
{
|
||
|
if(itemList != null)
|
||
|
{
|
||
|
itemList[i].WriteMessage(3);
|
||
|
}
|
||
|
}
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
if(equipIds != null)
|
||
|
{
|
||
|
equipIds.Clear();
|
||
|
}
|
||
|
if(itemList != null)
|
||
|
{
|
||
|
itemList.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int id;
|
||
|
public List<ulong> equipIds = new List<ulong>();
|
||
|
public List<UnrealSyncItem> itemList = new List<UnrealSyncItem>();
|
||
|
}
|
||
|
public partial class ReqUseUnreal : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 539204;
|
||
|
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 ResUseUnrealSoulResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResUseUnrealSoulResult(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 539105;
|
||
|
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(unrealSoulData == null)
|
||
|
{
|
||
|
unrealSoulData = new UnrealSoulInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
unrealSoulData.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(unrealSoulData != null)
|
||
|
{
|
||
|
unrealSoulData.Clear();
|
||
|
}
|
||
|
}
|
||
|
public UnrealSoulInfo unrealSoulData;
|
||
|
}
|
||
|
public partial class ResDeleteUnreal : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResDeleteUnreal(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 539106;
|
||
|
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 ResAddUnreal : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResAddUnreal(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 539107;
|
||
|
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(addUnrealitem == null)
|
||
|
{
|
||
|
addUnrealitem = new List<UnrealEquipItem>();
|
||
|
}
|
||
|
addUnrealitem.Add(new UnrealEquipItem());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
addUnrealitem[addUnrealitem.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 2:
|
||
|
reason = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(addUnrealitem != null)
|
||
|
{
|
||
|
addUnrealitem.Clear();
|
||
|
}
|
||
|
reason = 0;
|
||
|
}
|
||
|
public List<UnrealEquipItem> addUnrealitem = new List<UnrealEquipItem>();
|
||
|
public int reason;
|
||
|
}
|
||
|
public partial class ReqResolveUnreal : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 539205;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt64(1,uid);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
uid = 0;
|
||
|
}
|
||
|
public long uid;
|
||
|
}
|
||
|
public partial class ResUnrealEquipFightPower : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResUnrealEquipFightPower(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 539108;
|
||
|
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;
|
||
|
}
|
||
|
}
|
||
|
|