Files
2025-01-25 04:38:09 +08:00

2294 lines
80 KiB
C#

using System.Collections.Generic;
using Thousandto.Plugins.Common;
using Thousandto.Code.Logic.Network;
namespace MSG_Task
{
public partial class taskAttribute : 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 :
model = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
num = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3 :
needNum = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4 :
mapId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5 :
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6 :
xPos = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7 :
yPos = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 8 :
talkId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 9 :
itemId = 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,model);
ProtoBufUtils.WriteInt32(2,num);
ProtoBufUtils.WriteInt32(3,needNum);
ProtoBufUtils.WriteInt32(4,mapId);
ProtoBufUtils.WriteInt32(5,type);
ProtoBufUtils.WriteInt32(6,xPos);
ProtoBufUtils.WriteInt32(7,yPos);
ProtoBufUtils.WriteInt32(8,talkId);
ProtoBufUtils.WriteInt32(9,itemId);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
model = 0;
num = 0;
needNum = 0;
mapId = 0;
type = 0;
xPos = 0;
yPos = 0;
talkId = 0;
itemId = 0;
}
public int model;
public int num;
public int needNum;
public int mapId;
public int type;
public int xPos;
public int yPos;
public int talkId;
public int itemId;
}
public partial class mainTaskInfo : 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 :
modelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
if(useItems == null)
{
useItems = new taskAttribute();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
useItems.ReadMessage(ref readPos, totalCount);
break;
case 3 :
if(overIDs == null)
{
overIDs = new List<int>();
}
overIDs.Add(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,modelId);
if(useItems != null)
{
useItems.WriteMessage(2);
}
for (int i = 0; i < overIDs.Count; i++)
{
ProtoBufUtils.WriteInt32(3,overIDs[i]);
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
modelId = 0;
if(useItems != null)
{
useItems.Clear();
}
if(overIDs != null)
{
overIDs.Clear();
}
}
public int modelId;
public taskAttribute useItems;
public List<int> overIDs = new List<int>();
}
public partial class guideTaskInfo : 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 :
modelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
if(useItems == null)
{
useItems = new taskAttribute();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
useItems.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
public int WriteMessage(int fieldNumber)
{
ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String);
int subItemInfoId = ProtoBufUtils.GetSubItemInfoId();
ProtoBufUtils.SetEmptyLength(subItemInfoId);
ProtoBufUtils.SetVBeginIndex(subItemInfoId);
ProtoBufUtils.WriteInt32(1,modelId);
if(useItems != null)
{
useItems.WriteMessage(2);
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
modelId = 0;
if(useItems != null)
{
useItems.Clear();
}
}
public int modelId;
public taskAttribute useItems;
}
public partial class dailyTaskInfo : 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 :
modelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
if(useItems == null)
{
useItems = new taskAttribute();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
useItems.ReadMessage(ref readPos, totalCount);
break;
case 3 :
isfull = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 4 :
oneKeyState = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 5 :
isReceive = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 6 :
star = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7 :
count = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 8 :
maxCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 9 :
taskState = 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,modelId);
if(useItems != null)
{
useItems.WriteMessage(2);
}
ProtoBufUtils.WriteBoolean(3,isfull);
ProtoBufUtils.WriteBoolean(4,oneKeyState);
ProtoBufUtils.WriteBoolean(5,isReceive);
ProtoBufUtils.WriteInt32(6,star);
ProtoBufUtils.WriteInt32(7,count);
ProtoBufUtils.WriteInt32(8,maxCount);
ProtoBufUtils.WriteInt32(9,taskState);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
modelId = 0;
if(useItems != null)
{
useItems.Clear();
}
isfull = false;
oneKeyState = false;
isReceive = false;
star = 0;
count = 0;
maxCount = 0;
taskState = 0;
}
public int modelId;
public taskAttribute useItems;
public bool isfull;
public bool oneKeyState;
public bool isReceive;
public int star;
public int count;
public int maxCount;
public int taskState;
}
public partial class DailyTaskCountReward : 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 :
count = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
isReward = 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,count);
ProtoBufUtils.WriteBoolean(2,isReward);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
count = 0;
isReward = false;
}
public int count;
public bool isReward;
}
public partial class conquerTaskInfo : 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 :
modelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
if(monsters == null)
{
monsters = new taskAttribute();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
monsters.ReadMessage(ref readPos, totalCount);
break;
case 3 :
isReceive = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 4 :
count = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5 :
maxCount = 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,modelId);
if(monsters != null)
{
monsters.WriteMessage(2);
}
ProtoBufUtils.WriteBoolean(3,isReceive);
ProtoBufUtils.WriteInt32(4,count);
ProtoBufUtils.WriteInt32(5,maxCount);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
modelId = 0;
if(monsters != null)
{
monsters.Clear();
}
isReceive = false;
count = 0;
maxCount = 0;
}
public int modelId;
public taskAttribute monsters;
public bool isReceive;
public int count;
public int maxCount;
}
public partial class branchTaskInfo : 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 :
modelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
if(monsters == null)
{
monsters = new taskAttribute();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
monsters.ReadMessage(ref readPos, totalCount);
break;
case 3 :
isReceive = 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,modelId);
if(monsters != null)
{
monsters.WriteMessage(2);
}
ProtoBufUtils.WriteBoolean(3,isReceive);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
modelId = 0;
if(monsters != null)
{
monsters.Clear();
}
isReceive = false;
}
public int modelId;
public taskAttribute monsters;
public bool isReceive;
}
public partial class borderTaskInfo : 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 :
modelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
if(target == null)
{
target = new taskAttribute();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
target.ReadMessage(ref readPos, totalCount);
break;
case 3 :
isReceive = 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,modelId);
if(target != null)
{
target.WriteMessage(2);
}
ProtoBufUtils.WriteBoolean(3,isReceive);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
modelId = 0;
if(target != null)
{
target.Clear();
}
isReceive = false;
}
public int modelId;
public taskAttribute target;
public bool isReceive;
}
public partial class battleFieldTaskInfo : 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 :
modelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
if(target == null)
{
target = new taskAttribute();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
target.ReadMessage(ref readPos, totalCount);
break;
case 3 :
isReceive = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 4 :
star = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5 :
index = 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,modelId);
if(target != null)
{
target.WriteMessage(2);
}
ProtoBufUtils.WriteBoolean(3,isReceive);
ProtoBufUtils.WriteInt32(4,star);
ProtoBufUtils.WriteInt32(5,index);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
modelId = 0;
if(target != null)
{
target.Clear();
}
isReceive = false;
star = 0;
index = 0;
}
public int modelId;
public taskAttribute target;
public bool isReceive;
public int star;
public int index;
}
public partial class genderTaskInfo : 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 :
modelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
if(target == null)
{
target = new taskAttribute();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
target.ReadMessage(ref readPos, totalCount);
break;
case 3 :
isReceive = 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,modelId);
if(target != null)
{
target.WriteMessage(2);
}
ProtoBufUtils.WriteBoolean(3,isReceive);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
modelId = 0;
if(target != null)
{
target.Clear();
}
isReceive = false;
}
public int modelId;
public taskAttribute target;
public bool isReceive;
}
public partial class loopTaskInfo : 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 :
modelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
if(target == null)
{
target = new taskAttribute();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
target.ReadMessage(ref readPos, totalCount);
break;
case 3 :
isReceive = 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,modelId);
if(target != null)
{
target.WriteMessage(2);
}
ProtoBufUtils.WriteBoolean(3,isReceive);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
modelId = 0;
if(target != null)
{
target.Clear();
}
isReceive = false;
}
public int modelId;
public taskAttribute target;
public bool isReceive;
}
public partial class escortTaskInfo : 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 :
modelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
if(target == null)
{
target = new taskAttribute();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
target.ReadMessage(ref readPos, totalCount);
break;
case 3 :
isReceive = 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,modelId);
if(target != null)
{
target.WriteMessage(2);
}
ProtoBufUtils.WriteBoolean(3,isReceive);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
modelId = 0;
if(target != null)
{
target.Clear();
}
isReceive = false;
}
public int modelId;
public taskAttribute target;
public bool isReceive;
}
public partial class ResTaskList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResTaskList(this);
}
public const uint MsgID = 106101;
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(mainTask == null)
{
mainTask = new mainTaskInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
mainTask.ReadMessage(ref readPos, totalCount);
break;
case 2:
if(dailyTask == null)
{
dailyTask = new List<dailyTaskInfo>();
}
dailyTask.Add(new dailyTaskInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
dailyTask[dailyTask.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 3:
if(conquerTask == null)
{
conquerTask = new List<conquerTaskInfo>();
}
conquerTask.Add(new conquerTaskInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
conquerTask[conquerTask.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 4:
ishasnewdailytask = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5:
overDailyTaskCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6:
overConquerTaskCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7:
if(branchTask == null)
{
branchTask = new List<branchTaskInfo>();
}
branchTask.Add(new branchTaskInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
branchTask[branchTask.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 8:
if(genderTask == null)
{
genderTask = new List<genderTaskInfo>();
}
genderTask.Add(new genderTaskInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
genderTask[genderTask.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 9:
overGenderTaskCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 10:
if(guideTask == null)
{
guideTask = new List<guideTaskInfo>();
}
guideTask.Add(new guideTaskInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
guideTask[guideTask.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 11:
if(borderTask == null)
{
borderTask = new List<borderTaskInfo>();
}
borderTask.Add(new borderTaskInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
borderTask[borderTask.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 12:
if(battleFieldTask == null)
{
battleFieldTask = new List<battleFieldTaskInfo>();
}
battleFieldTask.Add(new battleFieldTaskInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
battleFieldTask[battleFieldTask.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 13:
remainFreeFreshCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 14:
autoFreshRemainTime = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 15:
nowBattleTaskCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 16:
if(loopTask == null)
{
loopTask = new List<loopTaskInfo>();
}
loopTask.Add(new loopTaskInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
loopTask[loopTask.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 17:
if(escortTask == null)
{
escortTask = new escortTaskInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
escortTask.ReadMessage(ref readPos, totalCount);
break;
case 18:
remainEscortTaskCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 19:
guildRefreshCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 20:
guildReceiveCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 21:
if(countRewardList == null)
{
countRewardList = new List<DailyTaskCountReward>();
}
countRewardList.Add(new DailyTaskCountReward());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
countRewardList[countRewardList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(mainTask != null)
{
mainTask.Clear();
}
if(dailyTask != null)
{
dailyTask.Clear();
}
if(conquerTask != null)
{
conquerTask.Clear();
}
ishasnewdailytask = 0;
overDailyTaskCount = 0;
overConquerTaskCount = 0;
if(branchTask != null)
{
branchTask.Clear();
}
if(genderTask != null)
{
genderTask.Clear();
}
overGenderTaskCount = 0;
if(guideTask != null)
{
guideTask.Clear();
}
if(borderTask != null)
{
borderTask.Clear();
}
if(battleFieldTask != null)
{
battleFieldTask.Clear();
}
remainFreeFreshCount = 0;
autoFreshRemainTime = 0;
nowBattleTaskCount = 0;
if(loopTask != null)
{
loopTask.Clear();
}
if(escortTask != null)
{
escortTask.Clear();
}
remainEscortTaskCount = 0;
guildRefreshCount = 0;
guildReceiveCount = 0;
if(countRewardList != null)
{
countRewardList.Clear();
}
}
public mainTaskInfo mainTask;
public List<dailyTaskInfo> dailyTask = new List<dailyTaskInfo>();
public List<conquerTaskInfo> conquerTask = new List<conquerTaskInfo>();
public int ishasnewdailytask;
public int overDailyTaskCount;
public int overConquerTaskCount;
public List<branchTaskInfo> branchTask = new List<branchTaskInfo>();
public List<genderTaskInfo> genderTask = new List<genderTaskInfo>();
public int overGenderTaskCount;
public List<guideTaskInfo> guideTask = new List<guideTaskInfo>();
public List<borderTaskInfo> borderTask = new List<borderTaskInfo>();
public List<battleFieldTaskInfo> battleFieldTask = new List<battleFieldTaskInfo>();
public int remainFreeFreshCount;
public long autoFreshRemainTime;
public int nowBattleTaskCount;
public List<loopTaskInfo> loopTask = new List<loopTaskInfo>();
public escortTaskInfo escortTask;
public int remainEscortTaskCount;
public int guildRefreshCount;
public int guildReceiveCount;
public List<DailyTaskCountReward> countRewardList = new List<DailyTaskCountReward>();
}
public partial class ResTaskFinish : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResTaskFinish(this);
}
public const uint MsgID = 106102;
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:
modelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
finshType = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
currentCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5:
submitResult = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 6:
state = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
modelId = 0;
finshType = 0;
currentCount = 0;
submitResult = false;
state = 0;
}
public int type;
public int modelId;
public int finshType;
public int currentCount;
public bool submitResult;
public int state;
}
public partial class ResMainTaskChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResMainTaskChange(this);
}
public const uint MsgID = 106104;
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(mainTask == null)
{
mainTask = new mainTaskInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
mainTask.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(mainTask != null)
{
mainTask.Clear();
}
}
public mainTaskInfo mainTask;
}
public partial class ResDailyTaskChang : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResDailyTaskChang(this);
}
public const uint MsgID = 106107;
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(dailyTask == null)
{
dailyTask = new dailyTaskInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
dailyTask.ReadMessage(ref readPos, totalCount);
break;
case 2:
isAuto = ProtoBufUtils.ReadBoolean(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(dailyTask != null)
{
dailyTask.Clear();
}
isAuto = false;
}
public dailyTaskInfo dailyTask;
public bool isAuto;
}
public partial class ResConquerTaskChang : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResConquerTaskChang(this);
}
public const uint MsgID = 106108;
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(questsTask == null)
{
questsTask = new conquerTaskInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
questsTask.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(questsTask != null)
{
questsTask.Clear();
}
}
public conquerTaskInfo questsTask;
}
public partial class ResMainTaskOver : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResMainTaskOver(this);
}
public const uint MsgID = 106109;
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(overIDs == null)
{
overIDs = new List<int>();
}
overIDs.Add(ProtoBufUtils.ReadInt32(ref readPos));
break;
default:
break;
}
}
}
}
public void Clear()
{
if(overIDs != null)
{
overIDs.Clear();
}
}
public List<int> overIDs = new List<int>();
}
public partial class ResBranchTaskChang : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResBranchTaskChang(this);
}
public const uint MsgID = 106110;
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(branchTask == null)
{
branchTask = new branchTaskInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
branchTask.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(branchTask != null)
{
branchTask.Clear();
}
}
public branchTaskInfo branchTask;
}
public partial class ResGenderTaskChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResGenderTaskChange(this);
}
public const uint MsgID = 106111;
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(genderTask == null)
{
genderTask = new genderTaskInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
genderTask.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(genderTask != null)
{
genderTask.Clear();
}
}
public genderTaskInfo genderTask;
}
public partial class ResTaskIsFinish : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResTaskIsFinish(this);
}
public const uint MsgID = 106112;
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:
taskId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
isFinish = ProtoBufUtils.ReadBoolean(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
taskId = 0;
isFinish = false;
}
public int type;
public int taskId;
public bool isFinish;
}
public partial class ResGuideTaskChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResGuideTaskChange(this);
}
public const uint MsgID = 106113;
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(guideTask == null)
{
guideTask = new guideTaskInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
guideTask.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(guideTask != null)
{
guideTask.Clear();
}
}
public guideTaskInfo guideTask;
}
public partial class ResBorderTaskChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResBorderTaskChange(this);
}
public const uint MsgID = 106114;
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(borderTask == null)
{
borderTask = new borderTaskInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
borderTask.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(borderTask != null)
{
borderTask.Clear();
}
}
public borderTaskInfo borderTask;
}
public partial class ResBattleFieldTaskChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResBattleFieldTaskChange(this);
}
public const uint MsgID = 106115;
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(battleFieldTask == null)
{
battleFieldTask = new List<battleFieldTaskInfo>();
}
battleFieldTask.Add(new battleFieldTaskInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
battleFieldTask[battleFieldTask.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 2:
remainFreeFreshCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
nowBattleTaskCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(battleFieldTask != null)
{
battleFieldTask.Clear();
}
remainFreeFreshCount = 0;
nowBattleTaskCount = 0;
}
public List<battleFieldTaskInfo> battleFieldTask = new List<battleFieldTaskInfo>();
public int remainFreeFreshCount;
public int nowBattleTaskCount;
}
public partial class ResEscortTaskChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResEscortTaskChange(this);
}
public const uint MsgID = 106120;
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(escortTask == null)
{
escortTask = new escortTaskInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
escortTask.ReadMessage(ref readPos, totalCount);
break;
case 2:
remainCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(escortTask != null)
{
escortTask.Clear();
}
remainCount = 0;
}
public escortTaskInfo escortTask;
public int remainCount;
}
public partial class ResTaskDelete : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResTaskDelete(this);
}
public const uint MsgID = 106116;
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:
modelId = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
modelId = 0;
}
public int type;
public int modelId;
}
public partial class ResBattleTaskNextFreshTime : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResBattleTaskNextFreshTime(this);
}
public const uint MsgID = 106117;
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:
remainFreshTime = ProtoBufUtils.ReadInt64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
remainFreshTime = 0;
}
public long remainFreshTime;
}
public partial class ResDailyTaskFinish : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResDailyTaskFinish(this);
}
public const uint MsgID = 106123;
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:
taskCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
if(rewards == null)
{
rewards = new List<MSG_Common.ShowItemInfo>();
}
rewards.Add(new MSG_Common.ShowItemInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
rewards[rewards.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 3:
if(extraRewards == null)
{
extraRewards = new List<MSG_Common.ShowItemInfo>();
}
extraRewards.Add(new MSG_Common.ShowItemInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
extraRewards[extraRewards.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
taskCount = 0;
if(rewards != null)
{
rewards.Clear();
}
if(extraRewards != null)
{
extraRewards.Clear();
}
}
public int taskCount;
public List<MSG_Common.ShowItemInfo> rewards = new List<MSG_Common.ShowItemInfo>();
public List<MSG_Common.ShowItemInfo> extraRewards = new List<MSG_Common.ShowItemInfo>();
}
public partial class ReqTaskFinish : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 106202;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,type);
ProtoBufUtils.WriteInt32(2,modelId);
ProtoBufUtils.WriteInt32(3,rewardPer);
ProtoBufUtils.WriteInt64(4,taskId);
ProtoBufUtils.WriteInt32(5,subType);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
type = 0;
modelId = 0;
rewardPer = 0;
taskId = 0;
subType = 0;
}
public int type;
public int modelId;
public int rewardPer;
public long taskId;
public int subType;
}
public partial class ReqGiveUpTask : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 106206;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,type);
ProtoBufUtils.WriteInt32(2,modelId);
ProtoBufUtils.WriteInt64(3,taskId);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
type = 0;
modelId = 0;
taskId = 0;
}
public int type;
public int modelId;
public long taskId;
}
public partial class ReqQuickFinish : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 106204;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,type);
ProtoBufUtils.WriteInt32(2,overPer);
ProtoBufUtils.WriteInt32(3,subType);
ProtoBufUtils.WriteInt32(4,taskCount);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
type = 0;
overPer = 0;
subType = 0;
taskCount = 0;
}
public int type;
public int overPer;
public int subType;
public int taskCount;
}
public partial class ReqOneKeyOverTask : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 106209;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,type);
ProtoBufUtils.WriteInt32(2,taskModelId);
ProtoBufUtils.WriteInt32(3,subType);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
type = 0;
taskModelId = 0;
subType = 0;
}
public int type;
public int taskModelId;
public int subType;
}
public partial class ReqDailyUpStar : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 106210;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,modelId);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
modelId = 0;
}
public int modelId;
}
public partial class ReqReceiveTask : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 106211;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,taskId);
ProtoBufUtils.WriteInt32(2,type);
ProtoBufUtils.WriteInt32(3,subType);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
taskId = 0;
type = 0;
subType = 0;
}
public int taskId;
public int type;
public int subType;
}
public partial class ReqCheckTaskIsFinish : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 106212;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,type);
ProtoBufUtils.WriteInt32(2,taskId);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
type = 0;
taskId = 0;
}
public int type;
public int taskId;
}
public partial class ReqRefreshTask : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 106213;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,type);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
type = 0;
}
public int type;
}
public partial class ReqChangeTaskState : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 106214;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,type);
ProtoBufUtils.WriteInt32(2,modelId);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
type = 0;
modelId = 0;
}
public int type;
public int modelId;
}
public partial class ResLoopTaskChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResLoopTaskChange(this);
}
public const uint MsgID = 106118;
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(loopTask == null)
{
loopTask = new loopTaskInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
loopTask.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(loopTask != null)
{
loopTask.Clear();
}
}
public loopTaskInfo loopTask;
}
public partial class ResGuildTaskPool : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResGuildTaskPool(this);
}
public const uint MsgID = 106121;
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(taskList == null)
{
taskList = new List<conquerTaskInfo>();
}
taskList.Add(new conquerTaskInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
taskList[taskList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 2:
refreshCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
receiveCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(taskList != null)
{
taskList.Clear();
}
refreshCount = 0;
receiveCount = 0;
}
public List<conquerTaskInfo> taskList = new List<conquerTaskInfo>();
public int refreshCount;
public int receiveCount;
}
public partial class ReqRefreshGuildTaskPool : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 106215;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteBoolean(1,useGold);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
useGold = false;
}
public bool useGold;
}
public partial class ReqGetTarget : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 106216;
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 ResTargetInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResTargetInfo(this);
}
public const uint MsgID = 106122;
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:
stage = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
stage = 0;
}
public int stage;
}
public partial class ReqChangeJob : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 106217;
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 ReqDailyTaskCountReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 106225;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,count);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
count = 0;
}
public int count;
}
public partial class ResDailyTaskCountReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResDailyTaskCountReward(this);
}
public const uint MsgID = 106125;
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(countReward == null)
{
countReward = new DailyTaskCountReward();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
countReward.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(countReward != null)
{
countReward.Clear();
}
}
public DailyTaskCountReward countReward;
}
}