2379 lines
82 KiB
C#
2379 lines
82 KiB
C#
|
using System.Collections.Generic;
|
||
|
using Thousandto.Plugins.Common;
|
||
|
using Thousandto.Code.Logic.Network;
|
||
|
|
||
|
namespace MSG_Backend
|
||
|
{
|
||
|
public partial class FuncOpenInfo : 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 :
|
||
|
state = 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);
|
||
|
ProtoBufUtils.WriteInt32(2,state);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
state = 0;
|
||
|
}
|
||
|
public int id;
|
||
|
public int state;
|
||
|
}
|
||
|
public partial class ResFuncOpenList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResFuncOpenList(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140105;
|
||
|
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(funcOpenList == null)
|
||
|
{
|
||
|
funcOpenList = new List<FuncOpenInfo>();
|
||
|
}
|
||
|
funcOpenList.Add(new FuncOpenInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
funcOpenList[funcOpenList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(funcOpenList != null)
|
||
|
{
|
||
|
funcOpenList.Clear();
|
||
|
}
|
||
|
}
|
||
|
public List<FuncOpenInfo> funcOpenList = new List<FuncOpenInfo>();
|
||
|
}
|
||
|
public partial class ResSwitchFunction : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResSwitchFunction(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140106;
|
||
|
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(switchFuncList == null)
|
||
|
{
|
||
|
switchFuncList = new List<FuncOpenInfo>();
|
||
|
}
|
||
|
switchFuncList.Add(new FuncOpenInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
switchFuncList[switchFuncList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 2:
|
||
|
isnew = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(switchFuncList != null)
|
||
|
{
|
||
|
switchFuncList.Clear();
|
||
|
}
|
||
|
isnew = false;
|
||
|
}
|
||
|
public List<FuncOpenInfo> switchFuncList = new List<FuncOpenInfo>();
|
||
|
public bool isnew;
|
||
|
}
|
||
|
public partial class ReqFuncOpenRoleInfo : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 140209;
|
||
|
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 ResFuncOpenRoleInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResFuncOpenRoleInfo(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140109;
|
||
|
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<FuncOpenInfo>();
|
||
|
}
|
||
|
infolist.Add(new FuncOpenInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
infolist[infolist.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(infolist != null)
|
||
|
{
|
||
|
infolist.Clear();
|
||
|
}
|
||
|
}
|
||
|
public List<FuncOpenInfo> infolist = new List<FuncOpenInfo>();
|
||
|
}
|
||
|
public partial class ReqFuncOpenReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 140211;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,id);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
}
|
||
|
public int id;
|
||
|
}
|
||
|
public partial class ResFuncOpenReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResFuncOpenReward(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140120;
|
||
|
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:
|
||
|
id = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
}
|
||
|
public int id;
|
||
|
}
|
||
|
public partial class ActivityInfo : 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.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
tag = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
name = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
bigLabel = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
smallLabel = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 7 :
|
||
|
numLimit = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 8 :
|
||
|
beginTime = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 9 :
|
||
|
endTime = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 10 :
|
||
|
panelImageId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 11 :
|
||
|
panelText = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 12 :
|
||
|
help = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 13 :
|
||
|
actionBegin = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 14 :
|
||
|
actionEnd = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 15 :
|
||
|
conditionList = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 16 :
|
||
|
rewardList = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 17 :
|
||
|
otherList = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 18 :
|
||
|
isDelete = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 19 :
|
||
|
rowText = ProtoBufUtils.ReadString(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,id);
|
||
|
ProtoBufUtils.WriteInt32(2,type);
|
||
|
ProtoBufUtils.WriteInt32(3,tag);
|
||
|
ProtoBufUtils.WriteString(4,name);
|
||
|
ProtoBufUtils.WriteInt32(5,bigLabel);
|
||
|
ProtoBufUtils.WriteInt32(6,smallLabel);
|
||
|
ProtoBufUtils.WriteInt32(7,numLimit);
|
||
|
ProtoBufUtils.WriteUint64(8,beginTime);
|
||
|
ProtoBufUtils.WriteUint64(9,endTime);
|
||
|
ProtoBufUtils.WriteInt32(10,panelImageId);
|
||
|
ProtoBufUtils.WriteString(11,panelText);
|
||
|
ProtoBufUtils.WriteString(12,help);
|
||
|
ProtoBufUtils.WriteString(13,actionBegin);
|
||
|
ProtoBufUtils.WriteString(14,actionEnd);
|
||
|
ProtoBufUtils.WriteString(15,conditionList);
|
||
|
ProtoBufUtils.WriteString(16,rewardList);
|
||
|
ProtoBufUtils.WriteString(17,otherList);
|
||
|
ProtoBufUtils.WriteInt32(18,isDelete);
|
||
|
ProtoBufUtils.WriteString(19,rowText);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
type = 0;
|
||
|
tag = 0;
|
||
|
name = null;
|
||
|
bigLabel = 0;
|
||
|
smallLabel = 0;
|
||
|
numLimit = 0;
|
||
|
beginTime = 0;
|
||
|
endTime = 0;
|
||
|
panelImageId = 0;
|
||
|
panelText = null;
|
||
|
help = null;
|
||
|
actionBegin = null;
|
||
|
actionEnd = null;
|
||
|
conditionList = null;
|
||
|
rewardList = null;
|
||
|
otherList = null;
|
||
|
isDelete = 0;
|
||
|
rowText = null;
|
||
|
}
|
||
|
public ulong id;
|
||
|
public int type;
|
||
|
public int tag;
|
||
|
public string name;
|
||
|
public int bigLabel;
|
||
|
public int smallLabel;
|
||
|
public int numLimit;
|
||
|
public ulong beginTime;
|
||
|
public ulong endTime;
|
||
|
public int panelImageId;
|
||
|
public string panelText;
|
||
|
public string help;
|
||
|
public string actionBegin;
|
||
|
public string actionEnd;
|
||
|
public string conditionList;
|
||
|
public string rewardList;
|
||
|
public string otherList;
|
||
|
public int isDelete;
|
||
|
public string rowText;
|
||
|
}
|
||
|
public partial class ActivityClientInfo : 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.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
name = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
beginTime = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
endTime = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
rewardList = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 7 :
|
||
|
numLimit = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 8 :
|
||
|
panelImageId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 9 :
|
||
|
bigPanel = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 10 :
|
||
|
smallPanel = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 11 :
|
||
|
getNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 12 :
|
||
|
panelText = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 13 :
|
||
|
needNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 14 :
|
||
|
haveNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 15 :
|
||
|
if(needItemList == null)
|
||
|
{
|
||
|
needItemList = new List<ActivetyExchangeNeed>();
|
||
|
}
|
||
|
needItemList.Add(new ActivetyExchangeNeed());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
needItemList[needItemList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 16 :
|
||
|
canGet = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 17 :
|
||
|
sendItemModelId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 18 :
|
||
|
if(rankList == null)
|
||
|
{
|
||
|
rankList = new List<ActivetyRankInfo>();
|
||
|
}
|
||
|
rankList.Add(new ActivetyRankInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
rankList[rankList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 19 :
|
||
|
condition = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 20 :
|
||
|
if(bossList == null)
|
||
|
{
|
||
|
bossList = new List<BossInfo>();
|
||
|
}
|
||
|
bossList.Add(new BossInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
bossList[bossList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 21 :
|
||
|
if(DayRewardList == null)
|
||
|
{
|
||
|
DayRewardList = new List<DayReward>();
|
||
|
}
|
||
|
DayRewardList.Add(new DayReward());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
DayRewardList[DayRewardList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 22 :
|
||
|
rewardAgain = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 23 :
|
||
|
rewardAgainState = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 24 :
|
||
|
rowText = ProtoBufUtils.ReadString(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,id);
|
||
|
ProtoBufUtils.WriteInt32(2,type);
|
||
|
ProtoBufUtils.WriteString(3,name);
|
||
|
ProtoBufUtils.WriteUint64(4,beginTime);
|
||
|
ProtoBufUtils.WriteUint64(5,endTime);
|
||
|
ProtoBufUtils.WriteString(6,rewardList);
|
||
|
ProtoBufUtils.WriteInt32(7,numLimit);
|
||
|
ProtoBufUtils.WriteInt32(8,panelImageId);
|
||
|
ProtoBufUtils.WriteInt32(9,bigPanel);
|
||
|
ProtoBufUtils.WriteInt32(10,smallPanel);
|
||
|
ProtoBufUtils.WriteInt32(11,getNum);
|
||
|
ProtoBufUtils.WriteString(12,panelText);
|
||
|
ProtoBufUtils.WriteInt32(13,needNum);
|
||
|
ProtoBufUtils.WriteInt32(14,haveNum);
|
||
|
for (int i = 0; i < needItemList.Count; i++)
|
||
|
{
|
||
|
if(needItemList != null)
|
||
|
{
|
||
|
needItemList[i].WriteMessage(15);
|
||
|
}
|
||
|
}
|
||
|
ProtoBufUtils.WriteBoolean(16,canGet);
|
||
|
ProtoBufUtils.WriteInt32(17,sendItemModelId);
|
||
|
for (int i = 0; i < rankList.Count; i++)
|
||
|
{
|
||
|
if(rankList != null)
|
||
|
{
|
||
|
rankList[i].WriteMessage(18);
|
||
|
}
|
||
|
}
|
||
|
ProtoBufUtils.WriteString(19,condition);
|
||
|
for (int i = 0; i < bossList.Count; i++)
|
||
|
{
|
||
|
if(bossList != null)
|
||
|
{
|
||
|
bossList[i].WriteMessage(20);
|
||
|
}
|
||
|
}
|
||
|
for (int i = 0; i < DayRewardList.Count; i++)
|
||
|
{
|
||
|
if(DayRewardList != null)
|
||
|
{
|
||
|
DayRewardList[i].WriteMessage(21);
|
||
|
}
|
||
|
}
|
||
|
ProtoBufUtils.WriteInt32(22,rewardAgain);
|
||
|
ProtoBufUtils.WriteInt32(23,rewardAgainState);
|
||
|
ProtoBufUtils.WriteString(24,rowText);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
type = 0;
|
||
|
name = null;
|
||
|
beginTime = 0;
|
||
|
endTime = 0;
|
||
|
rewardList = null;
|
||
|
numLimit = 0;
|
||
|
panelImageId = 0;
|
||
|
bigPanel = 0;
|
||
|
smallPanel = 0;
|
||
|
getNum = 0;
|
||
|
panelText = null;
|
||
|
needNum = 0;
|
||
|
haveNum = 0;
|
||
|
if(needItemList != null)
|
||
|
{
|
||
|
needItemList.Clear();
|
||
|
}
|
||
|
canGet = false;
|
||
|
sendItemModelId = 0;
|
||
|
if(rankList != null)
|
||
|
{
|
||
|
rankList.Clear();
|
||
|
}
|
||
|
condition = null;
|
||
|
if(bossList != null)
|
||
|
{
|
||
|
bossList.Clear();
|
||
|
}
|
||
|
if(DayRewardList != null)
|
||
|
{
|
||
|
DayRewardList.Clear();
|
||
|
}
|
||
|
rewardAgain = 0;
|
||
|
rewardAgainState = 0;
|
||
|
rowText = null;
|
||
|
}
|
||
|
public ulong id;
|
||
|
public int type;
|
||
|
public string name;
|
||
|
public ulong beginTime;
|
||
|
public ulong endTime;
|
||
|
public string rewardList;
|
||
|
public int numLimit;
|
||
|
public int panelImageId;
|
||
|
public int bigPanel;
|
||
|
public int smallPanel;
|
||
|
public int getNum;
|
||
|
public string panelText;
|
||
|
public int needNum;
|
||
|
public int haveNum;
|
||
|
public List<ActivetyExchangeNeed> needItemList = new List<ActivetyExchangeNeed>();
|
||
|
public bool canGet;
|
||
|
public int sendItemModelId;
|
||
|
public List<ActivetyRankInfo> rankList = new List<ActivetyRankInfo>();
|
||
|
public string condition;
|
||
|
public List<BossInfo> bossList = new List<BossInfo>();
|
||
|
public List<DayReward> DayRewardList = new List<DayReward>();
|
||
|
public int rewardAgain;
|
||
|
public int rewardAgainState;
|
||
|
public string rowText;
|
||
|
}
|
||
|
public partial class ReqGetActivityList : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 140201;
|
||
|
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 ResActivityClientInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResActivityClientInfo(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140101;
|
||
|
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<ActivityClientInfo>();
|
||
|
}
|
||
|
itemInfoList.Add(new ActivityClientInfo());
|
||
|
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<ActivityClientInfo> itemInfoList = new List<ActivityClientInfo>();
|
||
|
}
|
||
|
public partial class ResCrossActivityClientInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResCrossActivityClientInfo(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140110;
|
||
|
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(activity == null)
|
||
|
{
|
||
|
activity = new ActivityClientInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
activity.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(activity != null)
|
||
|
{
|
||
|
activity.Clear();
|
||
|
}
|
||
|
}
|
||
|
public ActivityClientInfo activity;
|
||
|
}
|
||
|
public partial class ResIsActivityCanGet : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResIsActivityCanGet(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140102;
|
||
|
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:
|
||
|
canGet = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
canGet = false;
|
||
|
}
|
||
|
public bool canGet;
|
||
|
}
|
||
|
public partial class ReqGetActivityReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 140202;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteUint64(1,id);
|
||
|
ProtoBufUtils.WriteInt32(2,type);
|
||
|
ProtoBufUtils.WriteInt32(3,num);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
type = 0;
|
||
|
num = 0;
|
||
|
}
|
||
|
public ulong id;
|
||
|
public int type;
|
||
|
public int num;
|
||
|
}
|
||
|
public partial class ResGetActivityRewardSuccess : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResGetActivityRewardSuccess(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140103;
|
||
|
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:
|
||
|
id = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
getNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
getNum = 0;
|
||
|
}
|
||
|
public ulong id;
|
||
|
public int getNum;
|
||
|
}
|
||
|
public partial class ResRewardAgainResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResRewardAgainResult(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140112;
|
||
|
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:
|
||
|
result = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
result = 0;
|
||
|
}
|
||
|
public int result;
|
||
|
}
|
||
|
public partial class ActivetyExchangeNeed : 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 :
|
||
|
itemModelId = ProtoBufUtils.ReadInt32(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.WriteInt32(1,itemModelId);
|
||
|
ProtoBufUtils.WriteInt32(2,num);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
itemModelId = 0;
|
||
|
num = 0;
|
||
|
}
|
||
|
public int itemModelId;
|
||
|
public int num;
|
||
|
}
|
||
|
public partial class ActivetyRankInfo : 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 :
|
||
|
top = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
name = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
limit = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
rewardList = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
roleId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
userId = ProtoBufUtils.ReadUint64(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,top);
|
||
|
ProtoBufUtils.WriteString(2,name);
|
||
|
ProtoBufUtils.WriteInt32(3,limit);
|
||
|
ProtoBufUtils.WriteString(4,rewardList);
|
||
|
ProtoBufUtils.WriteUint64(5,roleId);
|
||
|
ProtoBufUtils.WriteUint64(6,userId);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
top = 0;
|
||
|
name = null;
|
||
|
limit = 0;
|
||
|
rewardList = null;
|
||
|
roleId = 0;
|
||
|
userId = 0;
|
||
|
}
|
||
|
public int top;
|
||
|
public string name;
|
||
|
public int limit;
|
||
|
public string rewardList;
|
||
|
public ulong roleId;
|
||
|
public ulong userId;
|
||
|
}
|
||
|
public partial class BossInfo : 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 :
|
||
|
bossId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
needKillNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
hasKillNum = 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,bossId);
|
||
|
ProtoBufUtils.WriteInt32(2,needKillNum);
|
||
|
ProtoBufUtils.WriteInt32(3,hasKillNum);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
bossId = 0;
|
||
|
needKillNum = 0;
|
||
|
hasKillNum = 0;
|
||
|
}
|
||
|
public int bossId;
|
||
|
public int needKillNum;
|
||
|
public int hasKillNum;
|
||
|
}
|
||
|
public partial class DayReward : 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 :
|
||
|
day = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
reward = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
getState = 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,day);
|
||
|
ProtoBufUtils.WriteString(2,reward);
|
||
|
ProtoBufUtils.WriteInt32(3,getState);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
day = 0;
|
||
|
reward = null;
|
||
|
getState = 0;
|
||
|
}
|
||
|
public int day;
|
||
|
public string reward;
|
||
|
public int getState;
|
||
|
}
|
||
|
public partial class ReqActivitySendToFriend : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 140203;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteUint64(1,playerid);
|
||
|
ProtoBufUtils.WriteInt32(2,itemModelId);
|
||
|
ProtoBufUtils.WriteInt32(3,num);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
playerid = 0;
|
||
|
itemModelId = 0;
|
||
|
num = 0;
|
||
|
}
|
||
|
public ulong playerid;
|
||
|
public int itemModelId;
|
||
|
public int num;
|
||
|
}
|
||
|
public partial class ResActivitySendToFriendSuccess : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResActivitySendToFriendSuccess(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140104;
|
||
|
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:
|
||
|
sendName = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
receivedName = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
itemModelId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
num = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
sendName = null;
|
||
|
receivedName = null;
|
||
|
itemModelId = 0;
|
||
|
num = 0;
|
||
|
}
|
||
|
public string sendName;
|
||
|
public string receivedName;
|
||
|
public int itemModelId;
|
||
|
public int num;
|
||
|
}
|
||
|
public partial class G2PReqCrossRank : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_G2PReqCrossRank(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140301;
|
||
|
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:
|
||
|
id = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
roleId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
funtionV = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5:
|
||
|
rankDate = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 6:
|
||
|
serverId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 7:
|
||
|
name = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 8:
|
||
|
plat = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 9:
|
||
|
serial = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
roleId = 0;
|
||
|
type = 0;
|
||
|
funtionV = 0;
|
||
|
rankDate = 0;
|
||
|
serverId = 0;
|
||
|
name = null;
|
||
|
plat = null;
|
||
|
serial = 0;
|
||
|
}
|
||
|
public ulong id;
|
||
|
public ulong roleId;
|
||
|
public int type;
|
||
|
public int funtionV;
|
||
|
public int rankDate;
|
||
|
public int serverId;
|
||
|
public string name;
|
||
|
public string plat;
|
||
|
public int serial;
|
||
|
}
|
||
|
public partial class CrossRankData : 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.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
name = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
top = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
serverId = 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,id);
|
||
|
ProtoBufUtils.WriteString(2,name);
|
||
|
ProtoBufUtils.WriteInt32(3,top);
|
||
|
ProtoBufUtils.WriteInt32(4,serverId);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
name = null;
|
||
|
top = 0;
|
||
|
serverId = 0;
|
||
|
}
|
||
|
public ulong id;
|
||
|
public string name;
|
||
|
public int top;
|
||
|
public int serverId;
|
||
|
}
|
||
|
public partial class G2PReqCrossRankDataIsReceive : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_G2PReqCrossRankDataIsReceive(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140302;
|
||
|
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:
|
||
|
id = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
roleId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
serverId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5:
|
||
|
plat = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
roleId = 0;
|
||
|
type = 0;
|
||
|
serverId = 0;
|
||
|
plat = null;
|
||
|
}
|
||
|
public ulong id;
|
||
|
public ulong roleId;
|
||
|
public int type;
|
||
|
public int serverId;
|
||
|
public string plat;
|
||
|
}
|
||
|
public partial class P2GResCrossRankIsReceive : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_P2GResCrossRankIsReceive(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140401;
|
||
|
public void Send(){}
|
||
|
public void ReadMessage(byte[] bytes)
|
||
|
{
|
||
|
lock (ProtoBufUtils.ReadLocker)
|
||
|
{
|
||
|
Clear();
|
||
|
int endIndex = bytes.Length - 1;
|
||
|
int readPos = 0;
|
||
|
int totalCount = 0;
|
||
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int curType = bytes[readPos] & 7;
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1:
|
||
|
roleId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
isR = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
top = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
activityId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
roleId = 0;
|
||
|
isR = false;
|
||
|
top = 0;
|
||
|
activityId = 0;
|
||
|
}
|
||
|
public ulong roleId;
|
||
|
public bool isR;
|
||
|
public int top;
|
||
|
public ulong activityId;
|
||
|
}
|
||
|
public partial class G2PReqCrossRankData : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_G2PReqCrossRankData(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140303;
|
||
|
public void Send(){}
|
||
|
public void ReadMessage(byte[] bytes)
|
||
|
{
|
||
|
lock (ProtoBufUtils.ReadLocker)
|
||
|
{
|
||
|
Clear();
|
||
|
int endIndex = bytes.Length - 1;
|
||
|
int readPos = 0;
|
||
|
int totalCount = 0;
|
||
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int curType = bytes[readPos] & 7;
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1:
|
||
|
roleId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
id = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
serverId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5:
|
||
|
plat = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
roleId = 0;
|
||
|
id = 0;
|
||
|
type = 0;
|
||
|
serverId = 0;
|
||
|
plat = null;
|
||
|
}
|
||
|
public ulong roleId;
|
||
|
public ulong id;
|
||
|
public int type;
|
||
|
public int serverId;
|
||
|
public string plat;
|
||
|
}
|
||
|
public partial class P2GResCrossRankData : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_P2GResCrossRankData(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140402;
|
||
|
public void Send(){}
|
||
|
public void ReadMessage(byte[] bytes)
|
||
|
{
|
||
|
lock (ProtoBufUtils.ReadLocker)
|
||
|
{
|
||
|
Clear();
|
||
|
int endIndex = bytes.Length - 1;
|
||
|
int readPos = 0;
|
||
|
int totalCount = 0;
|
||
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
||
|
while (readPos <= endIndex)
|
||
|
{
|
||
|
int curType = bytes[readPos] & 7;
|
||
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
||
|
switch (fieldNumber)
|
||
|
{
|
||
|
case 1:
|
||
|
roleId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
if(data == null)
|
||
|
{
|
||
|
data = new List<CrossRankData>();
|
||
|
}
|
||
|
data.Add(new CrossRankData());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
data[data.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 3:
|
||
|
rank = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
roleId = 0;
|
||
|
if(data != null)
|
||
|
{
|
||
|
data.Clear();
|
||
|
}
|
||
|
rank = 0;
|
||
|
type = 0;
|
||
|
}
|
||
|
public ulong roleId;
|
||
|
public List<CrossRankData> data = new List<CrossRankData>();
|
||
|
public int rank;
|
||
|
public int type;
|
||
|
}
|
||
|
public partial class PaySendItemClientInfo : 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 :
|
||
|
key = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
startTime = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
endTime = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
totalTimes = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
buyTimes = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
canBuy = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 7 :
|
||
|
panelImageId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 8 :
|
||
|
panelOrder = 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,key);
|
||
|
ProtoBufUtils.WriteUint64(2,startTime);
|
||
|
ProtoBufUtils.WriteUint64(3,endTime);
|
||
|
ProtoBufUtils.WriteInt32(4,totalTimes);
|
||
|
ProtoBufUtils.WriteInt32(5,buyTimes);
|
||
|
ProtoBufUtils.WriteBoolean(6,canBuy);
|
||
|
ProtoBufUtils.WriteInt32(7,panelImageId);
|
||
|
ProtoBufUtils.WriteInt32(8,panelOrder);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
key = null;
|
||
|
startTime = 0;
|
||
|
endTime = 0;
|
||
|
totalTimes = 0;
|
||
|
buyTimes = 0;
|
||
|
canBuy = false;
|
||
|
panelImageId = 0;
|
||
|
panelOrder = 0;
|
||
|
}
|
||
|
public string key;
|
||
|
public ulong startTime;
|
||
|
public ulong endTime;
|
||
|
public int totalTimes;
|
||
|
public int buyTimes;
|
||
|
public bool canBuy;
|
||
|
public int panelImageId;
|
||
|
public int panelOrder;
|
||
|
}
|
||
|
public partial class ResOpenPaySendItemPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResOpenPaySendItemPanel(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140107;
|
||
|
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)
|
||
|
{
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
}
|
||
|
}
|
||
|
public partial class ResPaySendItemClientInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResPaySendItemClientInfo(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140108;
|
||
|
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<PaySendItemClientInfo>();
|
||
|
}
|
||
|
itemInfoList.Add(new PaySendItemClientInfo());
|
||
|
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<PaySendItemClientInfo> itemInfoList = new List<PaySendItemClientInfo>();
|
||
|
}
|
||
|
public partial class ReqClosePopWindow : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 140204;
|
||
|
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 ReqGetDailyRechargeReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 140205;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteUint64(1,id);
|
||
|
ProtoBufUtils.WriteInt32(2,getType);
|
||
|
ProtoBufUtils.WriteInt32(3,getDay);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
getType = 0;
|
||
|
getDay = 0;
|
||
|
}
|
||
|
public ulong id;
|
||
|
public int getType;
|
||
|
public int getDay;
|
||
|
}
|
||
|
public partial class ResGetDailyRechargeReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResGetDailyRechargeReward(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140111;
|
||
|
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:
|
||
|
id = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
getType = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
getNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
getType = 0;
|
||
|
getNum = 0;
|
||
|
}
|
||
|
public ulong id;
|
||
|
public int getType;
|
||
|
public int getNum;
|
||
|
}
|
||
|
public partial class ResFirstKillOpenState : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResFirstKillOpenState(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140113;
|
||
|
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:
|
||
|
isOpen = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
beginTime = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
endTime = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
isOpen = false;
|
||
|
beginTime = 0;
|
||
|
endTime = 0;
|
||
|
}
|
||
|
public bool isOpen;
|
||
|
public ulong beginTime;
|
||
|
public ulong endTime;
|
||
|
}
|
||
|
public partial class ResActivityRemainTime : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResActivityRemainTime(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140114;
|
||
|
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:
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
remainTime = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
iconId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
id = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
remainTime = 0;
|
||
|
iconId = 0;
|
||
|
id = 0;
|
||
|
}
|
||
|
public int type;
|
||
|
public int remainTime;
|
||
|
public int iconId;
|
||
|
public ulong id;
|
||
|
}
|
||
|
public partial class ReqRemainTimeActivity : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 140206;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,type);
|
||
|
ProtoBufUtils.WriteUint64(2,id);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
id = 0;
|
||
|
}
|
||
|
public int type;
|
||
|
public ulong id;
|
||
|
}
|
||
|
public partial class ReqBuyTimeLimitGift : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 140207;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteInt32(1,lv);
|
||
|
ProtoBufUtils.WriteUint64(2,id);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
lv = 0;
|
||
|
id = 0;
|
||
|
}
|
||
|
public int lv;
|
||
|
public ulong id;
|
||
|
}
|
||
|
public partial class LevelGift : 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 :
|
||
|
lv = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
itemList = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
isBuy = 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,lv);
|
||
|
ProtoBufUtils.WriteString(2,itemList);
|
||
|
ProtoBufUtils.WriteBoolean(3,isBuy);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
lv = 0;
|
||
|
itemList = null;
|
||
|
isBuy = false;
|
||
|
}
|
||
|
public int lv;
|
||
|
public string itemList;
|
||
|
public bool isBuy;
|
||
|
}
|
||
|
public partial class ResTimeLimitGift : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResTimeLimitGift(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140115;
|
||
|
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(giftList == null)
|
||
|
{
|
||
|
giftList = new List<LevelGift>();
|
||
|
}
|
||
|
giftList.Add(new LevelGift());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
giftList[giftList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 2:
|
||
|
remainTime = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(giftList != null)
|
||
|
{
|
||
|
giftList.Clear();
|
||
|
}
|
||
|
remainTime = 0;
|
||
|
}
|
||
|
public List<LevelGift> giftList = new List<LevelGift>();
|
||
|
public int remainTime;
|
||
|
}
|
||
|
public partial class ResCloudBuyInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResCloudBuyInfo(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140116;
|
||
|
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:
|
||
|
rewardList = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
luckyReward = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
remainNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4:
|
||
|
buyNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5:
|
||
|
remainTime = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 6:
|
||
|
needGold = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 7:
|
||
|
if(nameList == null)
|
||
|
{
|
||
|
nameList = new List<string>();
|
||
|
}
|
||
|
nameList.Add(ProtoBufUtils.ReadString(ref readPos));
|
||
|
break;
|
||
|
case 8:
|
||
|
luckyName = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 9:
|
||
|
roleLimit = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
rewardList = null;
|
||
|
luckyReward = null;
|
||
|
remainNum = 0;
|
||
|
buyNum = 0;
|
||
|
remainTime = 0;
|
||
|
needGold = 0;
|
||
|
if(nameList != null)
|
||
|
{
|
||
|
nameList.Clear();
|
||
|
}
|
||
|
luckyName = null;
|
||
|
roleLimit = 0;
|
||
|
}
|
||
|
public string rewardList;
|
||
|
public string luckyReward;
|
||
|
public int remainNum;
|
||
|
public int buyNum;
|
||
|
public int remainTime;
|
||
|
public int needGold;
|
||
|
public List<string> nameList = new List<string>();
|
||
|
public string luckyName;
|
||
|
public int roleLimit;
|
||
|
}
|
||
|
public partial class ReqCloudBuy : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 140208;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteUint64(1,id);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
}
|
||
|
public ulong id;
|
||
|
}
|
||
|
public partial class ResCloudBuy : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResCloudBuy(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140117;
|
||
|
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:
|
||
|
buyNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
buyNum = 0;
|
||
|
}
|
||
|
public int buyNum;
|
||
|
}
|
||
|
public partial class ResSyncCloudBuy : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResSyncCloudBuy(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140118;
|
||
|
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:
|
||
|
playerName = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
remainNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
playerName = null;
|
||
|
remainNum = 0;
|
||
|
}
|
||
|
public string playerName;
|
||
|
public int remainNum;
|
||
|
}
|
||
|
public partial class ReqCloseCloudBuy : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 140210;
|
||
|
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 ResLuckyReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResLuckyReward(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140119;
|
||
|
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:
|
||
|
luckyName = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
luckyName = null;
|
||
|
}
|
||
|
public string luckyName;
|
||
|
}
|
||
|
public partial class P2GNoticeSynData : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_P2GNoticeSynData(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 140403;
|
||
|
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:
|
||
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
data = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
type = 0;
|
||
|
data = null;
|
||
|
}
|
||
|
public int type;
|
||
|
public string data;
|
||
|
}
|
||
|
}
|
||
|
|