1044 lines
37 KiB
C#
1044 lines
37 KiB
C#
|
using System.Collections.Generic;
|
||
|
using Thousandto.Plugins.Common;
|
||
|
using Thousandto.Code.Logic.Network;
|
||
|
|
||
|
namespace MSG_HolidayActivities
|
||
|
{
|
||
|
public partial class HolidayActivityClientInfo : 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 :
|
||
|
bigLabel = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
smallLabel = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
numLimit = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 7 :
|
||
|
beginTime = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 8 :
|
||
|
endTime = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 9 :
|
||
|
panelImageId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 10 :
|
||
|
panelText = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 11 :
|
||
|
help = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 12 :
|
||
|
actionBegin = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 13 :
|
||
|
actionEnd = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 14 :
|
||
|
if(honorActivityInfo == null)
|
||
|
{
|
||
|
honorActivityInfo = new HonorActivityInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
honorActivityInfo.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 15 :
|
||
|
if(submitActivityInfo == null)
|
||
|
{
|
||
|
submitActivityInfo = new SubmitActivityInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
submitActivityInfo.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.WriteUint64(1,id);
|
||
|
ProtoBufUtils.WriteInt32(2,type);
|
||
|
ProtoBufUtils.WriteString(3,name);
|
||
|
ProtoBufUtils.WriteInt32(4,bigLabel);
|
||
|
ProtoBufUtils.WriteInt32(5,smallLabel);
|
||
|
ProtoBufUtils.WriteInt32(6,numLimit);
|
||
|
ProtoBufUtils.WriteUint64(7,beginTime);
|
||
|
ProtoBufUtils.WriteUint64(8,endTime);
|
||
|
ProtoBufUtils.WriteInt32(9,panelImageId);
|
||
|
ProtoBufUtils.WriteString(10,panelText);
|
||
|
ProtoBufUtils.WriteString(11,help);
|
||
|
ProtoBufUtils.WriteString(12,actionBegin);
|
||
|
ProtoBufUtils.WriteString(13,actionEnd);
|
||
|
if(honorActivityInfo != null)
|
||
|
{
|
||
|
honorActivityInfo.WriteMessage(14);
|
||
|
}
|
||
|
if(submitActivityInfo != null)
|
||
|
{
|
||
|
submitActivityInfo.WriteMessage(15);
|
||
|
}
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
id = 0;
|
||
|
type = 0;
|
||
|
name = null;
|
||
|
bigLabel = 0;
|
||
|
smallLabel = 0;
|
||
|
numLimit = 0;
|
||
|
beginTime = 0;
|
||
|
endTime = 0;
|
||
|
panelImageId = 0;
|
||
|
panelText = null;
|
||
|
help = null;
|
||
|
actionBegin = null;
|
||
|
actionEnd = null;
|
||
|
if(honorActivityInfo != null)
|
||
|
{
|
||
|
honorActivityInfo.Clear();
|
||
|
}
|
||
|
if(submitActivityInfo != null)
|
||
|
{
|
||
|
submitActivityInfo.Clear();
|
||
|
}
|
||
|
}
|
||
|
public ulong id;
|
||
|
public int type;
|
||
|
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 HonorActivityInfo honorActivityInfo;
|
||
|
public SubmitActivityInfo submitActivityInfo;
|
||
|
}
|
||
|
public partial class ReqHolidayActivityList : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 166201;
|
||
|
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 ResHolidayActivityList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResHolidayActivityList(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 166101;
|
||
|
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(holidayActivityList == null)
|
||
|
{
|
||
|
holidayActivityList = new List<HolidayActivityClientInfo>();
|
||
|
}
|
||
|
holidayActivityList.Add(new HolidayActivityClientInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
holidayActivityList[holidayActivityList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(holidayActivityList != null)
|
||
|
{
|
||
|
holidayActivityList.Clear();
|
||
|
}
|
||
|
}
|
||
|
public List<HolidayActivityClientInfo> holidayActivityList = new List<HolidayActivityClientInfo>();
|
||
|
}
|
||
|
public partial class ResHolidayActivityRedDot : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResHolidayActivityRedDot(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 166102;
|
||
|
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:
|
||
|
isRedDot = ProtoBufUtils.ReadBoolean(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
isRedDot = false;
|
||
|
}
|
||
|
public bool isRedDot;
|
||
|
}
|
||
|
public partial class HonorActivityInfo : 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 :
|
||
|
actId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
curHonorPoints = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
if(wayInfoList == null)
|
||
|
{
|
||
|
wayInfoList = new List<HonorWayInfo>();
|
||
|
}
|
||
|
wayInfoList.Add(new HonorWayInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
wayInfoList[wayInfoList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 4 :
|
||
|
if(rewardInfoList == null)
|
||
|
{
|
||
|
rewardInfoList = new List<HonorRewardInfo>();
|
||
|
}
|
||
|
rewardInfoList.Add(new HonorRewardInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
rewardInfoList[rewardInfoList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 5 :
|
||
|
countDown = 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,actId);
|
||
|
ProtoBufUtils.WriteInt32(2,curHonorPoints);
|
||
|
for (int i = 0; i < wayInfoList.Count; i++)
|
||
|
{
|
||
|
if(wayInfoList != null)
|
||
|
{
|
||
|
wayInfoList[i].WriteMessage(3);
|
||
|
}
|
||
|
}
|
||
|
for (int i = 0; i < rewardInfoList.Count; i++)
|
||
|
{
|
||
|
if(rewardInfoList != null)
|
||
|
{
|
||
|
rewardInfoList[i].WriteMessage(4);
|
||
|
}
|
||
|
}
|
||
|
ProtoBufUtils.WriteInt32(5,countDown);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
actId = 0;
|
||
|
curHonorPoints = 0;
|
||
|
if(wayInfoList != null)
|
||
|
{
|
||
|
wayInfoList.Clear();
|
||
|
}
|
||
|
if(rewardInfoList != null)
|
||
|
{
|
||
|
rewardInfoList.Clear();
|
||
|
}
|
||
|
countDown = 0;
|
||
|
}
|
||
|
public ulong actId;
|
||
|
public int curHonorPoints;
|
||
|
public List<HonorWayInfo> wayInfoList = new List<HonorWayInfo>();
|
||
|
public List<HonorRewardInfo> rewardInfoList = new List<HonorRewardInfo>();
|
||
|
public int countDown;
|
||
|
}
|
||
|
public partial class HonorWayInfo : 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 :
|
||
|
wayId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
everyPoint = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
limitNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
if(paramStruct == null)
|
||
|
{
|
||
|
paramStruct = new ParamStruct();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
paramStruct.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 5 :
|
||
|
completed = 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,wayId);
|
||
|
ProtoBufUtils.WriteInt32(2,everyPoint);
|
||
|
ProtoBufUtils.WriteInt32(3,limitNum);
|
||
|
if(paramStruct != null)
|
||
|
{
|
||
|
paramStruct.WriteMessage(4);
|
||
|
}
|
||
|
ProtoBufUtils.WriteInt32(5,completed);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
wayId = 0;
|
||
|
everyPoint = 0;
|
||
|
limitNum = 0;
|
||
|
if(paramStruct != null)
|
||
|
{
|
||
|
paramStruct.Clear();
|
||
|
}
|
||
|
completed = 0;
|
||
|
}
|
||
|
public int wayId;
|
||
|
public int everyPoint;
|
||
|
public int limitNum;
|
||
|
public ParamStruct paramStruct;
|
||
|
public int completed;
|
||
|
}
|
||
|
public partial class HonorRewardInfo : 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 :
|
||
|
rewardId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
needPoint = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
limitNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
itemStr = ProtoBufUtils.ReadString(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
status = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
getNum = 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,rewardId);
|
||
|
ProtoBufUtils.WriteInt32(2,needPoint);
|
||
|
ProtoBufUtils.WriteInt32(3,limitNum);
|
||
|
ProtoBufUtils.WriteString(4,itemStr);
|
||
|
ProtoBufUtils.WriteInt32(5,status);
|
||
|
ProtoBufUtils.WriteInt32(6,getNum);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
rewardId = 0;
|
||
|
needPoint = 0;
|
||
|
limitNum = 0;
|
||
|
itemStr = null;
|
||
|
status = 0;
|
||
|
getNum = 0;
|
||
|
}
|
||
|
public int rewardId;
|
||
|
public int needPoint;
|
||
|
public int limitNum;
|
||
|
public string itemStr;
|
||
|
public int status;
|
||
|
public int getNum;
|
||
|
}
|
||
|
public partial class ParamStruct : 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 :
|
||
|
languageId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
mark = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
paramsValue = 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.WriteInt32(1,languageId);
|
||
|
ProtoBufUtils.WriteInt32(2,mark);
|
||
|
ProtoBufUtils.WriteString(3,paramsValue);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
languageId = 0;
|
||
|
mark = 0;
|
||
|
paramsValue = null;
|
||
|
}
|
||
|
public int languageId;
|
||
|
public int mark;
|
||
|
public string paramsValue;
|
||
|
}
|
||
|
public partial class ReqHonorActivityInfo : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 166211;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteUint64(1,actId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
actId = 0;
|
||
|
}
|
||
|
public ulong actId;
|
||
|
}
|
||
|
public partial class ResSyncHonorActivityInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResSyncHonorActivityInfo(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 166111;
|
||
|
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(honorActivityInfo == null)
|
||
|
{
|
||
|
honorActivityInfo = new HonorActivityInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
honorActivityInfo.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(honorActivityInfo != null)
|
||
|
{
|
||
|
honorActivityInfo.Clear();
|
||
|
}
|
||
|
}
|
||
|
public HonorActivityInfo honorActivityInfo;
|
||
|
}
|
||
|
public partial class ReqHonorActivityReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 166212;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteUint64(1,actId);
|
||
|
ProtoBufUtils.WriteInt32(2,rewardId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
actId = 0;
|
||
|
rewardId = 0;
|
||
|
}
|
||
|
public ulong actId;
|
||
|
public int rewardId;
|
||
|
}
|
||
|
public partial class ResHonorActivityReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResHonorActivityReward(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 166112;
|
||
|
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:
|
||
|
actId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
rewardId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
result = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
actId = 0;
|
||
|
rewardId = 0;
|
||
|
result = 0;
|
||
|
}
|
||
|
public ulong actId;
|
||
|
public int rewardId;
|
||
|
public int result;
|
||
|
}
|
||
|
public partial class SubmitActivityInfo : 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 :
|
||
|
actId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
materialsId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
serverCurNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
roleHaveNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 5 :
|
||
|
roleCurNum = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 6 :
|
||
|
if(serverRewardInfoList == null)
|
||
|
{
|
||
|
serverRewardInfoList = new List<AllServerRewardInfo>();
|
||
|
}
|
||
|
serverRewardInfoList.Add(new AllServerRewardInfo());
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
serverRewardInfoList[serverRewardInfoList.Count - 1].ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
case 7 :
|
||
|
if(ownRewardShowItems == null)
|
||
|
{
|
||
|
ownRewardShowItems = new List<int>();
|
||
|
}
|
||
|
ownRewardShowItems.Add(ProtoBufUtils.ReadInt32(ref readPos));
|
||
|
break;
|
||
|
case 8 :
|
||
|
countDown = 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,actId);
|
||
|
ProtoBufUtils.WriteInt32(2,materialsId);
|
||
|
ProtoBufUtils.WriteInt32(3,serverCurNum);
|
||
|
ProtoBufUtils.WriteInt32(4,roleHaveNum);
|
||
|
ProtoBufUtils.WriteInt32(5,roleCurNum);
|
||
|
for (int i = 0; i < serverRewardInfoList.Count; i++)
|
||
|
{
|
||
|
if(serverRewardInfoList != null)
|
||
|
{
|
||
|
serverRewardInfoList[i].WriteMessage(6);
|
||
|
}
|
||
|
}
|
||
|
for (int i = 0; i < ownRewardShowItems.Count; i++)
|
||
|
{
|
||
|
ProtoBufUtils.WriteInt32(7,ownRewardShowItems[i]);
|
||
|
}
|
||
|
ProtoBufUtils.WriteInt32(8,countDown);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
actId = 0;
|
||
|
materialsId = 0;
|
||
|
serverCurNum = 0;
|
||
|
roleHaveNum = 0;
|
||
|
roleCurNum = 0;
|
||
|
if(serverRewardInfoList != null)
|
||
|
{
|
||
|
serverRewardInfoList.Clear();
|
||
|
}
|
||
|
if(ownRewardShowItems != null)
|
||
|
{
|
||
|
ownRewardShowItems.Clear();
|
||
|
}
|
||
|
countDown = 0;
|
||
|
}
|
||
|
public ulong actId;
|
||
|
public int materialsId;
|
||
|
public int serverCurNum;
|
||
|
public int roleHaveNum;
|
||
|
public int roleCurNum;
|
||
|
public List<AllServerRewardInfo> serverRewardInfoList = new List<AllServerRewardInfo>();
|
||
|
public List<int> ownRewardShowItems = new List<int>();
|
||
|
public int countDown;
|
||
|
}
|
||
|
public partial class AllServerRewardInfo : 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 :
|
||
|
rewardId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 2 :
|
||
|
rewardType = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3 :
|
||
|
needMaterials = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 4 :
|
||
|
status = 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,rewardId);
|
||
|
ProtoBufUtils.WriteInt32(2,rewardType);
|
||
|
ProtoBufUtils.WriteInt32(3,needMaterials);
|
||
|
ProtoBufUtils.WriteInt32(4,status);
|
||
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
||
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
rewardId = 0;
|
||
|
rewardType = 0;
|
||
|
needMaterials = 0;
|
||
|
status = 0;
|
||
|
}
|
||
|
public int rewardId;
|
||
|
public int rewardType;
|
||
|
public int needMaterials;
|
||
|
public int status;
|
||
|
}
|
||
|
public partial class ReqSubmitActivityInfo : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 166221;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteUint64(1,actId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
actId = 0;
|
||
|
}
|
||
|
public ulong actId;
|
||
|
}
|
||
|
public partial class ResSyncSubmitActivityInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResSyncSubmitActivityInfo(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 166121;
|
||
|
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(submitActivityInfo == null)
|
||
|
{
|
||
|
submitActivityInfo = new SubmitActivityInfo();
|
||
|
}
|
||
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
submitActivityInfo.ReadMessage(ref readPos, totalCount);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
if(submitActivityInfo != null)
|
||
|
{
|
||
|
submitActivityInfo.Clear();
|
||
|
}
|
||
|
}
|
||
|
public SubmitActivityInfo submitActivityInfo;
|
||
|
}
|
||
|
public partial class ReqSubmitMaterials : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 166222;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteUint64(1,actId);
|
||
|
ProtoBufUtils.WriteInt32(2,subType);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
actId = 0;
|
||
|
subType = 0;
|
||
|
}
|
||
|
public ulong actId;
|
||
|
public int subType;
|
||
|
}
|
||
|
public partial class ResSubmitMaterials : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResSubmitMaterials(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 166122;
|
||
|
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:
|
||
|
actId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
result = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
actId = 0;
|
||
|
result = 0;
|
||
|
}
|
||
|
public ulong actId;
|
||
|
public int result;
|
||
|
}
|
||
|
public partial class ReqGetServerReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
||
|
{
|
||
|
|
||
|
public const uint MsgID = 166223;
|
||
|
public void Excute(){}
|
||
|
public void Send()
|
||
|
{
|
||
|
lock (ProtoBufUtils.WriteLocker)
|
||
|
{
|
||
|
byte[] bytes = null;
|
||
|
ProtoBufUtils.InitWriteData();
|
||
|
ProtoBufUtils.WriteUint64(1,actId);
|
||
|
ProtoBufUtils.WriteInt32(2,rewardId);
|
||
|
bytes = ProtoBufUtils.GetData();
|
||
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
actId = 0;
|
||
|
rewardId = 0;
|
||
|
}
|
||
|
public ulong actId;
|
||
|
public int rewardId;
|
||
|
}
|
||
|
public partial class ResGetSererReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
||
|
{
|
||
|
public void Excute()
|
||
|
{
|
||
|
HandleMsgResult.getInstance().GS2U_ResGetSererReward(this);
|
||
|
}
|
||
|
|
||
|
public const uint MsgID = 166123;
|
||
|
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:
|
||
|
actId = ProtoBufUtils.ReadUint64(ref readPos);
|
||
|
break;
|
||
|
case 2:
|
||
|
rewardId = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
case 3:
|
||
|
result = ProtoBufUtils.ReadInt32(ref readPos);
|
||
|
break;
|
||
|
default:
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
public void Clear()
|
||
|
{
|
||
|
actId = 0;
|
||
|
rewardId = 0;
|
||
|
result = 0;
|
||
|
}
|
||
|
public ulong actId;
|
||
|
public int rewardId;
|
||
|
public int result;
|
||
|
}
|
||
|
}
|
||
|
|