1484 lines
50 KiB
C#
1484 lines
50 KiB
C#
|
using System.Collections.Generic;
|
||
|
using Thousandto.Plugins.Common;
|
||
|
using Thousandto.Code.Logic.Network;
|
||
|
|
||
|
namespace MSG_DevilSeries
|
||
|
{
|
||
|
public partial class ReqFollowDeviBoss : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 193201;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,cloneId);
|
||
|
ProtoBufUtils.WriteBoolean(2,followValue);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
cloneId = 0;
|
||
|
followValue = false;
|
||
|
}
|
||
|
public int cloneId;
|
||
|
public bool followValue;
|
||
|
}
|
||
|
public partial class ResFollowDeviBoss : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResFollowDeviBoss(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193101;
|
||
|
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:
|
||
|
cloneId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
followValue = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
state = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
cloneId = 0;
|
||
|
followValue = false;
|
||
|
state = 0;
|
||
|
}
|
||
|
public int cloneId;
|
||
|
public bool followValue;
|
||
|
public int state;
|
||
|
}
|
||
|
public partial class FollowData : 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 :
|
||
|
headName = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
endTime = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
mapId = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
career = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
roleId = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
if(head == null)
|
||
|
{
|
||
|
head = new MSG_Common.HeadAttribute();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
head.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.WriteString(1,headName);
|
||
|
ProtoBufUtils.WriteInt64(2,endTime);
|
||
|
ProtoBufUtils.WriteInt64(3,mapId);
|
||
|
ProtoBufUtils.WriteInt32(4,career);
|
||
|
ProtoBufUtils.WriteInt64(5,roleId);
|
||
|
if(head != null)
|
||
|
{
|
||
|
head.WriteMessage(6);
|
||
|
}
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
headName = null;
|
||
|
endTime = 0;
|
||
|
mapId = 0;
|
||
|
career = 0;
|
||
|
roleId = 0;
|
||
|
if(head != null)
|
||
|
{
|
||
|
head.Clear();
|
||
|
}
|
||
|
}
|
||
|
public string headName;
|
||
|
public long endTime;
|
||
|
public long mapId;
|
||
|
public int career;
|
||
|
public long roleId;
|
||
|
public MSG_Common.HeadAttribute head;
|
||
|
}
|
||
|
public partial class DeviBossState : 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 :
|
||
|
cloneId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
followValue = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
if(followDataList == null)
|
||
|
{
|
||
|
followDataList = new List<FollowData>();
|
||
|
}
|
||
|
followDataList.Add(new FollowData());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
followDataList[followDataList.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,cloneId);
|
||
|
ProtoBufUtils.WriteBoolean(2,followValue);
|
||
|
for (int i = 0; i < followDataList.Count; i++)
|
||
|
{
|
||
|
if(followDataList != null)
|
||
|
{
|
||
|
followDataList[i].WriteMessage(3);
|
||
|
}
|
||
|
}
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
cloneId = 0;
|
||
|
followValue = false;
|
||
|
if(followDataList != null)
|
||
|
{
|
||
|
followDataList.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int cloneId;
|
||
|
public bool followValue;
|
||
|
public List<FollowData> followDataList = new List<FollowData>();
|
||
|
}
|
||
|
public partial class ReqOpenDeviBossPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 193202;
|
||
|
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 ResOpenDeviBossPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResOpenDeviBossPanel(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193102;
|
||
|
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(deviBossList == null)
|
||
|
{
|
||
|
deviBossList = new List<DeviBossState>();
|
||
|
}
|
||
|
deviBossList.Add(new DeviBossState());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
deviBossList[deviBossList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(deviBossList != null)
|
||
|
{
|
||
|
deviBossList.Clear();
|
||
|
}
|
||
|
}
|
||
|
public List<DeviBossState> deviBossList = new List<DeviBossState>();
|
||
|
}
|
||
|
public partial class ReqCreateDeviBossMap : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 193203;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,cloneId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
cloneId = 0;
|
||
|
}
|
||
|
public int cloneId;
|
||
|
}
|
||
|
public partial class ReqEnterDeviBossMap : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 193205;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt64(1,mapId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
mapId = 0;
|
||
|
}
|
||
|
public long mapId;
|
||
|
}
|
||
|
public partial class ResEnterDeviBossMap : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResEnterDeviBossMap(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193117;
|
||
|
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:
|
||
|
cloneId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
endTime = ProtoBufUtils.ReadInt64(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
cloneId = 0;
|
||
|
endTime = 0;
|
||
|
}
|
||
|
public int cloneId;
|
||
|
public long endTime;
|
||
|
}
|
||
|
public partial class ResCreateDeviBossMapResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResCreateDeviBossMapResult(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193103;
|
||
|
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(deviBoss == null)
|
||
|
{
|
||
|
deviBoss = new DeviBossState();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
deviBoss.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(deviBoss != null)
|
||
|
{
|
||
|
deviBoss.Clear();
|
||
|
}
|
||
|
}
|
||
|
public DeviBossState deviBoss;
|
||
|
}
|
||
|
public partial class DeviBossIntegral : 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 :
|
||
|
name = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
intergral = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
rank = 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.WriteString(1,name);
|
||
|
ProtoBufUtils.WriteInt32(2,intergral);
|
||
|
ProtoBufUtils.WriteInt32(3,rank);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
name = null;
|
||
|
intergral = 0;
|
||
|
rank = 0;
|
||
|
}
|
||
|
public string name;
|
||
|
public int intergral;
|
||
|
public int rank;
|
||
|
}
|
||
|
public partial class ReqSynDeviBossIntegral : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 193217;
|
||
|
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 ResSynDeviBossIntegral : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResSynDeviBossIntegral(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193104;
|
||
|
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:
|
||
|
selfRank = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
selfIntergral = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
if(integralList == null)
|
||
|
{
|
||
|
integralList = new List<DeviBossIntegral>();
|
||
|
}
|
||
|
integralList.Add(new DeviBossIntegral());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
integralList[integralList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
selfRank = 0;
|
||
|
selfIntergral = 0;
|
||
|
if(integralList != null)
|
||
|
{
|
||
|
integralList.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int selfRank;
|
||
|
public int selfIntergral;
|
||
|
public List<DeviBossIntegral> integralList = new List<DeviBossIntegral>();
|
||
|
}
|
||
|
public partial class ResDevilCardList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResDevilCardList(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193105;
|
||
|
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(camp == null)
|
||
|
{
|
||
|
camp = new List<DevilCardCamp>();
|
||
|
}
|
||
|
camp.Add(new DevilCardCamp());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
camp[camp.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 2:
|
||
|
autoSet = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
autocolor = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
autoStar = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(camp != null)
|
||
|
{
|
||
|
camp.Clear();
|
||
|
}
|
||
|
autoSet = false;
|
||
|
autocolor = 0;
|
||
|
autoStar = 0;
|
||
|
}
|
||
|
public List<DevilCardCamp> camp = new List<DevilCardCamp>();
|
||
|
public bool autoSet;
|
||
|
public int autocolor;
|
||
|
public int autoStar;
|
||
|
}
|
||
|
public partial class DevilCardCamp : 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 :
|
||
|
campId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
if(card == null)
|
||
|
{
|
||
|
card = new List<DevilCard>();
|
||
|
}
|
||
|
card.Add(new DevilCard());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
card[card.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 3 :
|
||
|
active = 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,campId);
|
||
|
for (int i = 0; i < card.Count; i++)
|
||
|
{
|
||
|
if(card != null)
|
||
|
{
|
||
|
card[i].WriteMessage(2);
|
||
|
}
|
||
|
}
|
||
|
ProtoBufUtils.WriteBoolean(3,active);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
campId = 0;
|
||
|
if(card != null)
|
||
|
{
|
||
|
card.Clear();
|
||
|
}
|
||
|
active = false;
|
||
|
}
|
||
|
public int campId;
|
||
|
public List<DevilCard> card = new List<DevilCard>();
|
||
|
public bool active;
|
||
|
}
|
||
|
public partial class DevilCard : 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(part == null)
|
||
|
{
|
||
|
part = new List<DevilEquipPart>();
|
||
|
}
|
||
|
part.Add(new DevilEquipPart());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
part[part.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 3 :
|
||
|
level = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
rank = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
active = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
breakLv = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 7 :
|
||
|
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,id);
|
||
|
for (int i = 0; i < part.Count; i++)
|
||
|
{
|
||
|
if(part != null)
|
||
|
{
|
||
|
part[i].WriteMessage(2);
|
||
|
}
|
||
|
}
|
||
|
ProtoBufUtils.WriteInt32(3,level);
|
||
|
ProtoBufUtils.WriteInt32(4,rank);
|
||
|
ProtoBufUtils.WriteBoolean(5,active);
|
||
|
ProtoBufUtils.WriteInt32(6,breakLv);
|
||
|
ProtoBufUtils.WriteInt32(7,fightPoint);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
if(part != null)
|
||
|
{
|
||
|
part.Clear();
|
||
|
}
|
||
|
level = 0;
|
||
|
rank = 0;
|
||
|
active = false;
|
||
|
breakLv = 0;
|
||
|
fightPoint = 0;
|
||
|
}
|
||
|
public int id;
|
||
|
public List<DevilEquipPart> part = new List<DevilEquipPart>();
|
||
|
public int level;
|
||
|
public int rank;
|
||
|
public bool active;
|
||
|
public int breakLv;
|
||
|
public int fightPoint;
|
||
|
}
|
||
|
public partial class DevilEquipPart : 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;
|
||
|
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.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
if(equip != null)
|
||
|
{
|
||
|
equip.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int id;
|
||
|
public MSG_backpack.ItemInfo equip;
|
||
|
}
|
||
|
public partial class ReqDevilEquipWear : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 193207;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteFixed64(1,equipId);
|
||
|
ProtoBufUtils.WriteInt32(2,campId);
|
||
|
ProtoBufUtils.WriteInt32(3,cardId);
|
||
|
ProtoBufUtils.WriteInt32(4,cellId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
equipId = 0;
|
||
|
campId = 0;
|
||
|
cardId = 0;
|
||
|
cellId = 0;
|
||
|
}
|
||
|
public ulong equipId;
|
||
|
public int campId;
|
||
|
public int cardId;
|
||
|
public int cellId;
|
||
|
}
|
||
|
public partial class ResDevilEquipWear : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResDevilEquipWear(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193107;
|
||
|
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:
|
||
|
campId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
cardId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
cellId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5:
|
||
|
equipModelId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
equipId = 0;
|
||
|
campId = 0;
|
||
|
cardId = 0;
|
||
|
cellId = 0;
|
||
|
equipModelId = 0;
|
||
|
}
|
||
|
public ulong equipId;
|
||
|
public int campId;
|
||
|
public int cardId;
|
||
|
public int cellId;
|
||
|
public int equipModelId;
|
||
|
}
|
||
|
public partial class ReqDevilCardBreak : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 193208;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,campId);
|
||
|
ProtoBufUtils.WriteInt32(2,cardId);
|
||
|
for (int i = 0; i < equipId.Count; i++)
|
||
|
{
|
||
|
ProtoBufUtils.WriteFixed64(3,equipId[i]);
|
||
|
}
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
campId = 0;
|
||
|
cardId = 0;
|
||
|
if(equipId != null)
|
||
|
{
|
||
|
equipId.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int campId;
|
||
|
public int cardId;
|
||
|
public List<ulong> equipId = new List<ulong>();
|
||
|
}
|
||
|
public partial class ResDevilCardBreak : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResDevilCardBreak(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193108;
|
||
|
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:
|
||
|
campId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
cardId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
breakId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
campId = 0;
|
||
|
cardId = 0;
|
||
|
breakId = 0;
|
||
|
}
|
||
|
public int campId;
|
||
|
public int cardId;
|
||
|
public int breakId;
|
||
|
}
|
||
|
public partial class ReqDevilCardUp : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 193210;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,campId);
|
||
|
ProtoBufUtils.WriteInt32(2,cardId);
|
||
|
ProtoBufUtils.WriteInt32(3,type);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
campId = 0;
|
||
|
cardId = 0;
|
||
|
type = 0;
|
||
|
}
|
||
|
public int campId;
|
||
|
public int cardId;
|
||
|
public int type;
|
||
|
}
|
||
|
public partial class ResDevilCardUp : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResDevilCardUp(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193110;
|
||
|
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:
|
||
|
campId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
cardId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
rank = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
level = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5:
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
campId = 0;
|
||
|
cardId = 0;
|
||
|
rank = 0;
|
||
|
level = 0;
|
||
|
type = 0;
|
||
|
}
|
||
|
public int campId;
|
||
|
public int cardId;
|
||
|
public int rank;
|
||
|
public int level;
|
||
|
public int type;
|
||
|
}
|
||
|
public partial class ResDevilEquipAdd : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResDevilEquipAdd(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193111;
|
||
|
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:
|
||
|
reason = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
if(itemInfo == null)
|
||
|
{
|
||
|
itemInfo = new MSG_backpack.ItemInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
itemInfo.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
reason = 0;
|
||
|
if(itemInfo != null)
|
||
|
{
|
||
|
itemInfo.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int reason;
|
||
|
public MSG_backpack.ItemInfo itemInfo;
|
||
|
}
|
||
|
public partial class ResDevilEquipDelete : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResDevilEquipDelete(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193112;
|
||
|
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:
|
||
|
reason = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
itemId = ProtoBufUtils.ReadFixed64(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
reason = 0;
|
||
|
itemId = 0;
|
||
|
}
|
||
|
public int reason;
|
||
|
public ulong itemId;
|
||
|
}
|
||
|
public partial class ResDevilEquipBagInfos : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResDevilEquipBagInfos(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193113;
|
||
|
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(itemInfoList == null)
|
||
|
{
|
||
|
itemInfoList = new List<MSG_backpack.ItemInfo>();
|
||
|
}
|
||
|
itemInfoList.Add(new MSG_backpack.ItemInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
itemInfoList[itemInfoList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(itemInfoList != null)
|
||
|
{
|
||
|
itemInfoList.Clear();
|
||
|
}
|
||
|
}
|
||
|
public List<MSG_backpack.ItemInfo> itemInfoList = new List<MSG_backpack.ItemInfo>();
|
||
|
}
|
||
|
public partial class ReqDevilEquipSynthesis : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 193211;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,itemId);
|
||
|
for (int i = 0; i < equips.Count; i++)
|
||
|
{
|
||
|
ProtoBufUtils.WriteInt64(2,equips[i]);
|
||
|
}
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
itemId = 0;
|
||
|
if(equips != null)
|
||
|
{
|
||
|
equips.Clear();
|
||
|
}
|
||
|
}
|
||
|
public int itemId;
|
||
|
public List<long> equips = new List<long>();
|
||
|
}
|
||
|
public partial class ResDevilEquipSynthesis : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResDevilEquipSynthesis(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193114;
|
||
|
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:
|
||
|
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;
|
||
|
if(newEquip != null)
|
||
|
{
|
||
|
newEquip.Clear();
|
||
|
}
|
||
|
}
|
||
|
public bool success;
|
||
|
public MSG_backpack.ItemInfo newEquip;
|
||
|
}
|
||
|
public partial class ResDevilCardFightPoint : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResDevilCardFightPoint(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193118;
|
||
|
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:
|
||
|
campId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
cardId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
fightPoint = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
campId = 0;
|
||
|
cardId = 0;
|
||
|
fightPoint = 0;
|
||
|
}
|
||
|
public int campId;
|
||
|
public int cardId;
|
||
|
public int fightPoint;
|
||
|
}
|
||
|
public partial class ReqDevilHunt : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 193215;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,huntType);
|
||
|
ProtoBufUtils.WriteInt32(2,consecutiveType);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
huntType = 0;
|
||
|
consecutiveType = 0;
|
||
|
}
|
||
|
public int huntType;
|
||
|
public int consecutiveType;
|
||
|
}
|
||
|
public partial class ResDevilHunt : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResDevilHunt(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193115;
|
||
|
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:
|
||
|
huntType = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
consecutiveType = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
devilHotValue = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
huntType = 0;
|
||
|
consecutiveType = 0;
|
||
|
devilHotValue = 0;
|
||
|
}
|
||
|
public int huntType;
|
||
|
public int consecutiveType;
|
||
|
public int devilHotValue;
|
||
|
}
|
||
|
public partial class ReqDevilHuntPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 193216;
|
||
|
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 ResDevilHuntPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResDevilHuntPanel(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 193116;
|
||
|
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:
|
||
|
devilHotValue = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
devilHotValue = 0;
|
||
|
}
|
||
|
public int devilHotValue;
|
||
|
}
|
||
|
}
|
||
|
|