914 lines
31 KiB
C#
914 lines
31 KiB
C#
using System.Collections.Generic;
|
|
using Thousandto.Plugins.Common;
|
|
using Thousandto.Code.Logic.Network;
|
|
|
|
namespace MSG_Market
|
|
{
|
|
public partial class marketItemInfo : 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 :
|
|
marketId = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 2 :
|
|
if(itemInfo == null)
|
|
{
|
|
itemInfo = new MSG_backpack.ItemInfo();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
itemInfo.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 3 :
|
|
lostTime = ProtoBufUtils.ReadFixed64(ref readPos);
|
|
break;
|
|
case 4 :
|
|
coinType = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 5 :
|
|
coinNum = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 6 :
|
|
tranAuthor = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 7 :
|
|
secret = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 8 :
|
|
panelType = 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.WriteInt64(1,marketId);
|
|
if(itemInfo != null)
|
|
{
|
|
itemInfo.WriteMessage(2);
|
|
}
|
|
ProtoBufUtils.WriteFixed64(3,lostTime);
|
|
ProtoBufUtils.WriteInt32(4,coinType);
|
|
ProtoBufUtils.WriteInt32(5,coinNum);
|
|
ProtoBufUtils.WriteString(6,tranAuthor);
|
|
ProtoBufUtils.WriteString(7,secret);
|
|
ProtoBufUtils.WriteInt32(8,panelType);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
marketId = 0;
|
|
if(itemInfo != null)
|
|
{
|
|
itemInfo.Clear();
|
|
}
|
|
lostTime = 0;
|
|
coinType = 0;
|
|
coinNum = 0;
|
|
tranAuthor = null;
|
|
secret = null;
|
|
panelType = 0;
|
|
}
|
|
public long marketId;
|
|
public MSG_backpack.ItemInfo itemInfo;
|
|
public ulong lostTime;
|
|
public int coinType;
|
|
public int coinNum;
|
|
public string tranAuthor;
|
|
public string secret;
|
|
public int panelType;
|
|
}
|
|
public partial class marketLogInfo : 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 :
|
|
tranTime = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2 :
|
|
tranType = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3 :
|
|
tranAuthor = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 4 :
|
|
tranRoleId = ProtoBufUtils.ReadFixed64(ref readPos);
|
|
break;
|
|
case 5 :
|
|
coinType = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 6 :
|
|
coinNum = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 7 :
|
|
if(itemInfo == null)
|
|
{
|
|
itemInfo = new MSG_backpack.ItemInfo();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
itemInfo.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 8 :
|
|
panelType = 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,tranTime);
|
|
ProtoBufUtils.WriteInt32(2,tranType);
|
|
ProtoBufUtils.WriteString(3,tranAuthor);
|
|
ProtoBufUtils.WriteFixed64(4,tranRoleId);
|
|
ProtoBufUtils.WriteInt32(5,coinType);
|
|
ProtoBufUtils.WriteInt32(6,coinNum);
|
|
if(itemInfo != null)
|
|
{
|
|
itemInfo.WriteMessage(7);
|
|
}
|
|
ProtoBufUtils.WriteInt32(8,panelType);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
tranTime = 0;
|
|
tranType = 0;
|
|
tranAuthor = null;
|
|
tranRoleId = 0;
|
|
coinType = 0;
|
|
coinNum = 0;
|
|
if(itemInfo != null)
|
|
{
|
|
itemInfo.Clear();
|
|
}
|
|
panelType = 0;
|
|
}
|
|
public int tranTime;
|
|
public int tranType;
|
|
public string tranAuthor;
|
|
public ulong tranRoleId;
|
|
public int coinType;
|
|
public int coinNum;
|
|
public MSG_backpack.ItemInfo itemInfo;
|
|
public int panelType;
|
|
}
|
|
public partial class ResMarketUpItem : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResMarketUpItem(this);
|
|
}
|
|
|
|
public const uint MsgID = 123101;
|
|
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(marketItemInfo == null)
|
|
{
|
|
marketItemInfo = new marketItemInfo();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
marketItemInfo.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(marketItemInfo != null)
|
|
{
|
|
marketItemInfo.Clear();
|
|
}
|
|
}
|
|
public marketItemInfo marketItemInfo;
|
|
}
|
|
public partial class ResMarketUpFailure : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResMarketUpFailure(this);
|
|
}
|
|
|
|
public const uint MsgID = 123102;
|
|
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:
|
|
marketId = ProtoBufUtils.ReadFixed64(ref readPos);
|
|
break;
|
|
case 2:
|
|
state = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
marketId = 0;
|
|
state = 0;
|
|
}
|
|
public ulong marketId;
|
|
public int state;
|
|
}
|
|
public partial class ResMarketLogList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResMarketLogList(this);
|
|
}
|
|
|
|
public const uint MsgID = 123104;
|
|
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(infoList == null)
|
|
{
|
|
infoList = new List<marketLogInfo>();
|
|
}
|
|
infoList.Add(new marketLogInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
infoList[infoList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
gold = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(infoList != null)
|
|
{
|
|
infoList.Clear();
|
|
}
|
|
gold = 0;
|
|
}
|
|
public List<marketLogInfo> infoList = new List<marketLogInfo>();
|
|
public long gold;
|
|
}
|
|
public partial class ResMarketSortList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResMarketSortList(this);
|
|
}
|
|
|
|
public const uint MsgID = 123103;
|
|
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:
|
|
sortType = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
desc = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3:
|
|
indexBegin = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 4:
|
|
indexEnd = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 5:
|
|
panelType = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 6:
|
|
dirType = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 7:
|
|
pingJiType = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 8:
|
|
color = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 9:
|
|
sex = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 10:
|
|
searchName = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 11:
|
|
if(marketList == null)
|
|
{
|
|
marketList = new List<marketItemInfo>();
|
|
}
|
|
marketList.Add(new marketItemInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
marketList[marketList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 12:
|
|
sortCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 13:
|
|
zhuan = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
sortType = 0;
|
|
desc = 0;
|
|
indexBegin = 0;
|
|
indexEnd = 0;
|
|
panelType = 0;
|
|
dirType = 0;
|
|
pingJiType = 0;
|
|
color = 0;
|
|
sex = 0;
|
|
searchName = null;
|
|
if(marketList != null)
|
|
{
|
|
marketList.Clear();
|
|
}
|
|
sortCount = 0;
|
|
zhuan = 0;
|
|
}
|
|
public int sortType;
|
|
public int desc;
|
|
public int indexBegin;
|
|
public int indexEnd;
|
|
public int panelType;
|
|
public int dirType;
|
|
public int pingJiType;
|
|
public int color;
|
|
public int sex;
|
|
public string searchName;
|
|
public List<marketItemInfo> marketList = new List<marketItemInfo>();
|
|
public int sortCount;
|
|
public int zhuan;
|
|
}
|
|
public partial class ResMyMarketList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResMyMarketList(this);
|
|
}
|
|
|
|
public const uint MsgID = 123105;
|
|
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(marketList == null)
|
|
{
|
|
marketList = new List<marketItemInfo>();
|
|
}
|
|
marketList.Add(new marketItemInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
marketList[marketList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(marketList != null)
|
|
{
|
|
marketList.Clear();
|
|
}
|
|
}
|
|
public List<marketItemInfo> marketList = new List<marketItemInfo>();
|
|
}
|
|
public partial class ResBuyItemFailure : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResBuyItemFailure(this);
|
|
}
|
|
|
|
public const uint MsgID = 123106;
|
|
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:
|
|
marketId = ProtoBufUtils.ReadFixed64(ref readPos);
|
|
break;
|
|
case 2:
|
|
state = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
marketId = 0;
|
|
state = 0;
|
|
}
|
|
public ulong marketId;
|
|
public int state;
|
|
}
|
|
public partial class ReqUpItem : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 123201;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteFixed64(1,marketId);
|
|
ProtoBufUtils.WriteFixed64(2,itemId);
|
|
ProtoBufUtils.WriteInt32(3,coinType);
|
|
ProtoBufUtils.WriteInt32(4,coinNum);
|
|
ProtoBufUtils.WriteInt32(5,num);
|
|
ProtoBufUtils.WriteString(6,secretKey);
|
|
ProtoBufUtils.WriteInt32(7,panelType);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
marketId = 0;
|
|
itemId = 0;
|
|
coinType = 0;
|
|
coinNum = 0;
|
|
num = 0;
|
|
secretKey = null;
|
|
panelType = 0;
|
|
}
|
|
public ulong marketId;
|
|
public ulong itemId;
|
|
public int coinType;
|
|
public int coinNum;
|
|
public int num;
|
|
public string secretKey;
|
|
public int panelType;
|
|
}
|
|
public partial class ReqDownItem : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 123202;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteFixed64(1,marketId);
|
|
ProtoBufUtils.WriteInt32(2,panelType);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
marketId = 0;
|
|
panelType = 0;
|
|
}
|
|
public ulong marketId;
|
|
public int panelType;
|
|
}
|
|
public partial class ReqMarketSort : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 123203;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,sortType);
|
|
ProtoBufUtils.WriteInt32(2,desc);
|
|
ProtoBufUtils.WriteInt32(3,indexBegin);
|
|
ProtoBufUtils.WriteInt32(4,indexEnd);
|
|
ProtoBufUtils.WriteInt32(5,panelType);
|
|
ProtoBufUtils.WriteInt32(6,dirType);
|
|
ProtoBufUtils.WriteInt32(7,pingJiType);
|
|
ProtoBufUtils.WriteInt32(8,color);
|
|
ProtoBufUtils.WriteInt32(9,sex);
|
|
ProtoBufUtils.WriteString(10,searchName);
|
|
ProtoBufUtils.WriteInt32(11,zhuan);
|
|
ProtoBufUtils.WriteString(12,lang);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
sortType = 0;
|
|
desc = 0;
|
|
indexBegin = 0;
|
|
indexEnd = 0;
|
|
panelType = 0;
|
|
dirType = 0;
|
|
pingJiType = 0;
|
|
color = 0;
|
|
sex = 0;
|
|
searchName = null;
|
|
zhuan = 0;
|
|
lang = null;
|
|
}
|
|
public int sortType;
|
|
public int desc;
|
|
public int indexBegin;
|
|
public int indexEnd;
|
|
public int panelType;
|
|
public int dirType;
|
|
public int pingJiType;
|
|
public int color;
|
|
public int sex;
|
|
public string searchName;
|
|
public int zhuan;
|
|
public string lang;
|
|
}
|
|
public partial class ReqBuyMarketItem : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 123204;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteFixed64(1,marketId);
|
|
ProtoBufUtils.WriteInt32(2,itemNum);
|
|
ProtoBufUtils.WriteString(3,secretKey);
|
|
ProtoBufUtils.WriteInt32(7,panelType);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
marketId = 0;
|
|
itemNum = 0;
|
|
secretKey = null;
|
|
panelType = 0;
|
|
}
|
|
public ulong marketId;
|
|
public int itemNum;
|
|
public string secretKey;
|
|
public int panelType;
|
|
}
|
|
public partial class ReqMyMarketList : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 123205;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(5,panelType);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
panelType = 0;
|
|
}
|
|
public int panelType;
|
|
}
|
|
public partial class ReqMyMarketLogList : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 123206;
|
|
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 ReqCoinList : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 123207;
|
|
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 ResCoinList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResCoinList(this);
|
|
}
|
|
|
|
public const uint MsgID = 123107;
|
|
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:
|
|
gold = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
gold = 0;
|
|
}
|
|
public long gold;
|
|
}
|
|
public partial class ReqGetMarketCoin : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 123208;
|
|
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 ResGetMarketCoin : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResGetMarketCoin(this);
|
|
}
|
|
|
|
public const uint MsgID = 123108;
|
|
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:
|
|
state = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
state = 0;
|
|
}
|
|
public int state;
|
|
}
|
|
public partial class ReqSellItemList : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 123209;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,modelId);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
modelId = 0;
|
|
}
|
|
public int modelId;
|
|
}
|
|
public partial class ResSellItemList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResSellItemList(this);
|
|
}
|
|
|
|
public const uint MsgID = 123109;
|
|
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:
|
|
modelId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
if(marketList == null)
|
|
{
|
|
marketList = new List<marketItemInfo>();
|
|
}
|
|
marketList.Add(new marketItemInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
marketList[marketList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
modelId = 0;
|
|
if(marketList != null)
|
|
{
|
|
marketList.Clear();
|
|
}
|
|
}
|
|
public int modelId;
|
|
public List<marketItemInfo> marketList = new List<marketItemInfo>();
|
|
}
|
|
}
|
|
|