614 lines
21 KiB
C#
614 lines
21 KiB
C#
using System.Collections.Generic;
|
|
using Thousandto.Plugins.Common;
|
|
using Thousandto.Code.Logic.Network;
|
|
|
|
namespace MSG_NineDaysFocused
|
|
{
|
|
public partial class CrossHero : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible
|
|
{
|
|
public void Send(){}
|
|
public void Excute(){}
|
|
public void ReadMessage(ref int readPos, int totalCount)
|
|
{
|
|
int endIndex = totalCount + readPos - 1;
|
|
while (readPos <= endIndex)
|
|
{
|
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
|
switch (fieldNumber)
|
|
{
|
|
case 1 :
|
|
name = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 2 :
|
|
serverName = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 3 :
|
|
career = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 4 :
|
|
degree = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 5 :
|
|
lv = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 6 :
|
|
fightPoint = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 7 :
|
|
weaponId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 8 :
|
|
wingId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 9 :
|
|
equipMinStar = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 10 :
|
|
fashionBodyId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 11 :
|
|
fashionWeaponId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 12 :
|
|
roleId = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 13 :
|
|
stifleFabaoId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
public int WriteMessage(int fieldNumber)
|
|
{
|
|
ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String);
|
|
int subItemInfoId = ProtoBufUtils.GetSubItemInfoId();
|
|
ProtoBufUtils.SetEmptyLength(subItemInfoId);
|
|
ProtoBufUtils.SetVBeginIndex(subItemInfoId);
|
|
ProtoBufUtils.WriteString(1,name);
|
|
ProtoBufUtils.WriteString(2,serverName);
|
|
ProtoBufUtils.WriteInt32(3,career);
|
|
ProtoBufUtils.WriteInt32(4,degree);
|
|
ProtoBufUtils.WriteInt32(5,lv);
|
|
ProtoBufUtils.WriteInt32(6,fightPoint);
|
|
ProtoBufUtils.WriteInt32(7,weaponId);
|
|
ProtoBufUtils.WriteInt32(8,wingId);
|
|
ProtoBufUtils.WriteInt32(9,equipMinStar);
|
|
ProtoBufUtils.WriteInt32(10,fashionBodyId);
|
|
ProtoBufUtils.WriteInt32(11,fashionWeaponId);
|
|
ProtoBufUtils.WriteInt64(12,roleId);
|
|
ProtoBufUtils.WriteInt32(13,stifleFabaoId);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
name = null;
|
|
serverName = null;
|
|
career = 0;
|
|
degree = 0;
|
|
lv = 0;
|
|
fightPoint = 0;
|
|
weaponId = 0;
|
|
wingId = 0;
|
|
equipMinStar = 0;
|
|
fashionBodyId = 0;
|
|
fashionWeaponId = 0;
|
|
roleId = 0;
|
|
stifleFabaoId = 0;
|
|
}
|
|
public string name;
|
|
public string serverName;
|
|
public int career;
|
|
public int degree;
|
|
public int lv;
|
|
public int fightPoint;
|
|
public int weaponId;
|
|
public int wingId;
|
|
public int equipMinStar;
|
|
public int fashionBodyId;
|
|
public int fashionWeaponId;
|
|
public long roleId;
|
|
public int stifleFabaoId;
|
|
}
|
|
public partial class TaskData : 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 :
|
|
taskID = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2 :
|
|
alreadyStage = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3 :
|
|
targetStage = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 4 :
|
|
isGet = 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,taskID);
|
|
ProtoBufUtils.WriteInt32(2,alreadyStage);
|
|
ProtoBufUtils.WriteInt32(3,targetStage);
|
|
ProtoBufUtils.WriteBoolean(4,isGet);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
taskID = 0;
|
|
alreadyStage = 0;
|
|
targetStage = 0;
|
|
isGet = false;
|
|
}
|
|
public int taskID;
|
|
public int alreadyStage;
|
|
public int targetStage;
|
|
public bool isGet;
|
|
}
|
|
public partial class ReqApplyNieDaysFocused : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 513201;
|
|
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 G2PReqApplyNieDaysFocused : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2PReqApplyNieDaysFocused(this);
|
|
}
|
|
|
|
public const uint MsgID = 513301;
|
|
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(hero == null)
|
|
{
|
|
hero = new CrossHero();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
hero.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(hero != null)
|
|
{
|
|
hero.Clear();
|
|
}
|
|
}
|
|
public CrossHero hero;
|
|
}
|
|
public partial class ResApplyNieDaysReuslt : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResApplyNieDaysReuslt(this);
|
|
}
|
|
|
|
public const uint MsgID = 513101;
|
|
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:
|
|
isSucceed = ProtoBufUtils.ReadBoolean(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
isSucceed = false;
|
|
}
|
|
public bool isSucceed;
|
|
}
|
|
public partial class ReqOpenTasKPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 513202;
|
|
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 ResOpenTasKPanelReuslt : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResOpenTasKPanelReuslt(this);
|
|
}
|
|
|
|
public const uint MsgID = 513102;
|
|
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<TaskData>();
|
|
}
|
|
tasklist.Add(new TaskData());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
tasklist[tasklist.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(tasklist != null)
|
|
{
|
|
tasklist.Clear();
|
|
}
|
|
}
|
|
public List<TaskData> tasklist = new List<TaskData>();
|
|
}
|
|
public partial class ReqGetTasKReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 513203;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,taskID);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
taskID = 0;
|
|
}
|
|
public int taskID;
|
|
}
|
|
public partial class ResRefreshTask : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResRefreshTask(this);
|
|
}
|
|
|
|
public const uint MsgID = 513103;
|
|
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(taskdata == null)
|
|
{
|
|
taskdata = new TaskData();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
taskdata.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(taskdata != null)
|
|
{
|
|
taskdata.Clear();
|
|
}
|
|
}
|
|
public TaskData taskdata;
|
|
}
|
|
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 :
|
|
uid = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 2 :
|
|
campAhurtPer = ProtoBufUtils.ReadFloat(ref readPos);
|
|
break;
|
|
case 3 :
|
|
campBhurtPer = ProtoBufUtils.ReadFloat(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
public int WriteMessage(int fieldNumber)
|
|
{
|
|
ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String);
|
|
int subItemInfoId = ProtoBufUtils.GetSubItemInfoId();
|
|
ProtoBufUtils.SetEmptyLength(subItemInfoId);
|
|
ProtoBufUtils.SetVBeginIndex(subItemInfoId);
|
|
ProtoBufUtils.WriteInt64(1,uid);
|
|
ProtoBufUtils.WriteFloat(2,campAhurtPer);
|
|
ProtoBufUtils.WriteFloat(3,campBhurtPer);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
uid = 0;
|
|
campAhurtPer = 0;
|
|
campBhurtPer = 0;
|
|
}
|
|
public long uid;
|
|
public float campAhurtPer;
|
|
public float campBhurtPer;
|
|
}
|
|
public partial class ResBossHurtInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResBossHurtInfo(this);
|
|
}
|
|
|
|
public const uint MsgID = 513104;
|
|
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(bosslist == null)
|
|
{
|
|
bosslist = new List<BossInfo>();
|
|
}
|
|
bosslist.Add(new BossInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
bosslist[bosslist.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(bosslist != null)
|
|
{
|
|
bosslist.Clear();
|
|
}
|
|
}
|
|
public List<BossInfo> bosslist = new List<BossInfo>();
|
|
}
|
|
public partial class F2GSynchrodata : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_F2GSynchrodata(this);
|
|
}
|
|
|
|
public const uint MsgID = 513401;
|
|
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.ReadInt64(ref readPos);
|
|
break;
|
|
case 2:
|
|
gatherRewardNum = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3:
|
|
bossRewardNum = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 4:
|
|
dropId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
gatherRewardNum = 0;
|
|
bossRewardNum = 0;
|
|
dropId = 0;
|
|
}
|
|
public long roleId;
|
|
public int gatherRewardNum;
|
|
public int bossRewardNum;
|
|
public int dropId;
|
|
}
|
|
public partial class F2GSynchrotask : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_F2GSynchrotask(this);
|
|
}
|
|
|
|
public const uint MsgID = 513402;
|
|
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.ReadInt64(ref readPos);
|
|
break;
|
|
case 2:
|
|
if(taskdata == null)
|
|
{
|
|
taskdata = new TaskData();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
taskdata.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
if(taskdata != null)
|
|
{
|
|
taskdata.Clear();
|
|
}
|
|
}
|
|
public long roleId;
|
|
public TaskData taskdata;
|
|
}
|
|
}
|
|
|