2267 lines
78 KiB
C#
2267 lines
78 KiB
C#
using System.Collections.Generic;
|
|
using Thousandto.Plugins.Common;
|
|
using Thousandto.Code.Logic.Network;
|
|
|
|
namespace MSG_GuildActivity
|
|
{
|
|
public partial class ReqOpenRankPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 501201;
|
|
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 guildMenberRankInfo : 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 :
|
|
rank = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2 :
|
|
realm = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3 :
|
|
name = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 4 :
|
|
level = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 5 :
|
|
fight = ProtoBufUtils.ReadUint64(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
public int WriteMessage(int fieldNumber)
|
|
{
|
|
ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String);
|
|
int subItemInfoId = ProtoBufUtils.GetSubItemInfoId();
|
|
ProtoBufUtils.SetEmptyLength(subItemInfoId);
|
|
ProtoBufUtils.SetVBeginIndex(subItemInfoId);
|
|
ProtoBufUtils.WriteInt32(1,rank);
|
|
ProtoBufUtils.WriteInt32(2,realm);
|
|
ProtoBufUtils.WriteString(3,name);
|
|
ProtoBufUtils.WriteInt32(4,level);
|
|
ProtoBufUtils.WriteUint64(5,fight);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
rank = 0;
|
|
realm = 0;
|
|
name = null;
|
|
level = 0;
|
|
fight = 0;
|
|
}
|
|
public int rank;
|
|
public int realm;
|
|
public string name;
|
|
public int level;
|
|
public ulong fight;
|
|
}
|
|
public partial class guildRankInfo : 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 :
|
|
guildId = ProtoBufUtils.ReadUint64(ref readPos);
|
|
break;
|
|
case 2 :
|
|
name = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 3 :
|
|
if(menberRank == null)
|
|
{
|
|
menberRank = new List<guildMenberRankInfo>();
|
|
}
|
|
menberRank.Add(new guildMenberRankInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
menberRank[menberRank.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 4 :
|
|
myRank = 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,guildId);
|
|
ProtoBufUtils.WriteString(2,name);
|
|
for (int i = 0; i < menberRank.Count; i++)
|
|
{
|
|
if(menberRank != null)
|
|
{
|
|
menberRank[i].WriteMessage(3);
|
|
}
|
|
}
|
|
ProtoBufUtils.WriteInt32(4,myRank);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
guildId = 0;
|
|
name = null;
|
|
if(menberRank != null)
|
|
{
|
|
menberRank.Clear();
|
|
}
|
|
myRank = 0;
|
|
}
|
|
public ulong guildId;
|
|
public string name;
|
|
public List<guildMenberRankInfo> menberRank = new List<guildMenberRankInfo>();
|
|
public int myRank;
|
|
}
|
|
public partial class ResOpenRankPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResOpenRankPanel(this);
|
|
}
|
|
|
|
public const uint MsgID = 501101;
|
|
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(guildRank == null)
|
|
{
|
|
guildRank = new List<guildRankInfo>();
|
|
}
|
|
guildRank.Add(new guildRankInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
guildRank[guildRank.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
myGuildRank = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3:
|
|
myRank = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(guildRank != null)
|
|
{
|
|
guildRank.Clear();
|
|
}
|
|
myGuildRank = 0;
|
|
myRank = 0;
|
|
}
|
|
public List<guildRankInfo> guildRank = new List<guildRankInfo>();
|
|
public int myGuildRank;
|
|
public int myRank;
|
|
}
|
|
public partial class ReqOpenAllBossPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 501202;
|
|
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 survival : 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 :
|
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2 :
|
|
num = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
public int WriteMessage(int fieldNumber)
|
|
{
|
|
ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String);
|
|
int subItemInfoId = ProtoBufUtils.GetSubItemInfoId();
|
|
ProtoBufUtils.SetEmptyLength(subItemInfoId);
|
|
ProtoBufUtils.SetVBeginIndex(subItemInfoId);
|
|
ProtoBufUtils.WriteInt32(1,type);
|
|
ProtoBufUtils.WriteInt32(2,num);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
type = 0;
|
|
num = 0;
|
|
}
|
|
public int type;
|
|
public int num;
|
|
}
|
|
public partial class monsterRemain : 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 :
|
|
guildId = ProtoBufUtils.ReadUint64(ref readPos);
|
|
break;
|
|
case 2 :
|
|
name = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 3 :
|
|
if(survival == null)
|
|
{
|
|
survival = new List<survival>();
|
|
}
|
|
survival.Add(new survival());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
survival[survival.Count - 1].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,guildId);
|
|
ProtoBufUtils.WriteString(2,name);
|
|
for (int i = 0; i < survival.Count; i++)
|
|
{
|
|
if(survival != null)
|
|
{
|
|
survival[i].WriteMessage(3);
|
|
}
|
|
}
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
guildId = 0;
|
|
name = null;
|
|
if(survival != null)
|
|
{
|
|
survival.Clear();
|
|
}
|
|
}
|
|
public ulong guildId;
|
|
public string name;
|
|
public List<survival> survival = new List<survival>();
|
|
}
|
|
public partial class ResOpenAllBossPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResOpenAllBossPanel(this);
|
|
}
|
|
|
|
public const uint MsgID = 501102;
|
|
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(remain == null)
|
|
{
|
|
remain = new List<monsterRemain>();
|
|
}
|
|
remain.Add(new monsterRemain());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
remain[remain.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
todayScore = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3:
|
|
if(rewards == null)
|
|
{
|
|
rewards = new List<int>();
|
|
}
|
|
rewards.Add(ProtoBufUtils.ReadInt32(ref readPos));
|
|
break;
|
|
case 4:
|
|
if(infos == null)
|
|
{
|
|
infos = new List<detailFudiInfo>();
|
|
}
|
|
infos.Add(new detailFudiInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
infos[infos.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 5:
|
|
worldLevel = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(remain != null)
|
|
{
|
|
remain.Clear();
|
|
}
|
|
todayScore = 0;
|
|
if(rewards != null)
|
|
{
|
|
rewards.Clear();
|
|
}
|
|
if(infos != null)
|
|
{
|
|
infos.Clear();
|
|
}
|
|
worldLevel = 0;
|
|
}
|
|
public List<monsterRemain> remain = new List<monsterRemain>();
|
|
public int todayScore;
|
|
public List<int> rewards = new List<int>();
|
|
public List<detailFudiInfo> infos = new List<detailFudiInfo>();
|
|
public int worldLevel;
|
|
}
|
|
public partial class detailFudiInfo : 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 :
|
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2 :
|
|
score = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3 :
|
|
if(resurgenceTime == null)
|
|
{
|
|
resurgenceTime = new List<monsterResurgenceTime>();
|
|
}
|
|
resurgenceTime.Add(new monsterResurgenceTime());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
resurgenceTime[resurgenceTime.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 4 :
|
|
if(attentionList == null)
|
|
{
|
|
attentionList = new List<int>();
|
|
}
|
|
attentionList.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,type);
|
|
ProtoBufUtils.WriteInt32(2,score);
|
|
for (int i = 0; i < resurgenceTime.Count; i++)
|
|
{
|
|
if(resurgenceTime != null)
|
|
{
|
|
resurgenceTime[i].WriteMessage(3);
|
|
}
|
|
}
|
|
for (int i = 0; i < attentionList.Count; i++)
|
|
{
|
|
ProtoBufUtils.WriteInt32(4,attentionList[i]);
|
|
}
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
type = 0;
|
|
score = 0;
|
|
if(resurgenceTime != null)
|
|
{
|
|
resurgenceTime.Clear();
|
|
}
|
|
if(attentionList != null)
|
|
{
|
|
attentionList.Clear();
|
|
}
|
|
}
|
|
public int type;
|
|
public int score;
|
|
public List<monsterResurgenceTime> resurgenceTime = new List<monsterResurgenceTime>();
|
|
public List<int> attentionList = new List<int>();
|
|
}
|
|
public partial class ResRedPointInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResRedPointInfo(this);
|
|
}
|
|
|
|
public const uint MsgID = 501115;
|
|
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(type == null)
|
|
{
|
|
type = new List<int>();
|
|
}
|
|
type.Add(ProtoBufUtils.ReadInt32(ref readPos));
|
|
break;
|
|
case 2:
|
|
openServerDay = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(type != null)
|
|
{
|
|
type.Clear();
|
|
}
|
|
openServerDay = 0;
|
|
}
|
|
public List<int> type = new List<int>();
|
|
public int openServerDay;
|
|
}
|
|
public partial class ReqDayScoreReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 501203;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,id);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
id = 0;
|
|
}
|
|
public int id;
|
|
}
|
|
public partial class ResDayScoreReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResDayScoreReward(this);
|
|
}
|
|
|
|
public const uint MsgID = 501103;
|
|
public void Send(){}
|
|
public void ReadMessage(byte[] bytes)
|
|
{
|
|
lock (ProtoBufUtils.ReadLocker)
|
|
{
|
|
Clear();
|
|
int endIndex = bytes.Length - 1;
|
|
int readPos = 0;
|
|
int totalCount = 0;
|
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
|
while (readPos <= endIndex)
|
|
{
|
|
int curType = bytes[readPos] & 7;
|
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
|
switch (fieldNumber)
|
|
{
|
|
case 1:
|
|
id = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
success = ProtoBufUtils.ReadBoolean(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
id = 0;
|
|
success = false;
|
|
}
|
|
public int id;
|
|
public bool success;
|
|
}
|
|
public partial class monsterResurgenceTime : 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 :
|
|
monsterModelId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2 :
|
|
resurgenceTime = ProtoBufUtils.ReadUint64(ref readPos);
|
|
break;
|
|
case 3 :
|
|
monsterType = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 4 :
|
|
level = 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,monsterModelId);
|
|
ProtoBufUtils.WriteUint64(2,resurgenceTime);
|
|
ProtoBufUtils.WriteInt32(3,monsterType);
|
|
ProtoBufUtils.WriteInt32(4,level);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
monsterModelId = 0;
|
|
resurgenceTime = 0;
|
|
monsterType = 0;
|
|
level = 0;
|
|
}
|
|
public int monsterModelId;
|
|
public ulong resurgenceTime;
|
|
public int monsterType;
|
|
public int level;
|
|
}
|
|
public partial class ResUpdateMonsterResurgenceTime : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResUpdateMonsterResurgenceTime(this);
|
|
}
|
|
|
|
public const uint MsgID = 501105;
|
|
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(resurgenceTime == null)
|
|
{
|
|
resurgenceTime = new List<monsterResurgenceTime>();
|
|
}
|
|
resurgenceTime.Add(new monsterResurgenceTime());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
resurgenceTime[resurgenceTime.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3:
|
|
state = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(resurgenceTime != null)
|
|
{
|
|
resurgenceTime.Clear();
|
|
}
|
|
type = 0;
|
|
state = 0;
|
|
}
|
|
public List<monsterResurgenceTime> resurgenceTime = new List<monsterResurgenceTime>();
|
|
public int type;
|
|
public int state;
|
|
}
|
|
public partial class ReqAttentionMonster : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 501205;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,monsterModelId);
|
|
ProtoBufUtils.WriteInt32(2,type);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
monsterModelId = 0;
|
|
type = 0;
|
|
}
|
|
public int monsterModelId;
|
|
public int type;
|
|
}
|
|
public partial class ResAttentionMonster : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResAttentionMonster(this);
|
|
}
|
|
|
|
public const uint MsgID = 501106;
|
|
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:
|
|
attention = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
attention = 0;
|
|
type = 0;
|
|
}
|
|
public int attention;
|
|
public int type;
|
|
}
|
|
public partial class ResAttentionMonsterRefresh : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResAttentionMonsterRefresh(this);
|
|
}
|
|
|
|
public const uint MsgID = 501107;
|
|
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:
|
|
monsterModelId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
monsterModelId = 0;
|
|
}
|
|
public int monsterModelId;
|
|
}
|
|
public partial class ResSynAnger : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResSynAnger(this);
|
|
}
|
|
|
|
public const uint MsgID = 501108;
|
|
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:
|
|
anger = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
anger = 0;
|
|
}
|
|
public int anger;
|
|
}
|
|
public partial class bossHarmInfo : 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.ReadInt64(ref readPos);
|
|
break;
|
|
case 2 :
|
|
name = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 3 :
|
|
damage = ProtoBufUtils.ReadInt64(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,id);
|
|
ProtoBufUtils.WriteString(2,name);
|
|
ProtoBufUtils.WriteInt64(3,damage);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
id = 0;
|
|
name = null;
|
|
damage = 0;
|
|
}
|
|
public long id;
|
|
public string name;
|
|
public long damage;
|
|
}
|
|
public partial class ResHarmData : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResHarmData(this);
|
|
}
|
|
|
|
public const uint MsgID = 501114;
|
|
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:
|
|
bossModelId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
if(guildHarmData == null)
|
|
{
|
|
guildHarmData = new List<bossHarmInfo>();
|
|
}
|
|
guildHarmData.Add(new bossHarmInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
guildHarmData[guildHarmData.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 3:
|
|
if(personHarmData == null)
|
|
{
|
|
personHarmData = new List<bossHarmInfo>();
|
|
}
|
|
personHarmData.Add(new bossHarmInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
personHarmData[personHarmData.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 4:
|
|
bossUid = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
bossModelId = 0;
|
|
if(guildHarmData != null)
|
|
{
|
|
guildHarmData.Clear();
|
|
}
|
|
if(personHarmData != null)
|
|
{
|
|
personHarmData.Clear();
|
|
}
|
|
bossUid = 0;
|
|
}
|
|
public int bossModelId;
|
|
public List<bossHarmInfo> guildHarmData = new List<bossHarmInfo>();
|
|
public List<bossHarmInfo> personHarmData = new List<bossHarmInfo>();
|
|
public long bossUid;
|
|
}
|
|
public partial class ResQuitTip : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResQuitTip(this);
|
|
}
|
|
|
|
public const uint MsgID = 501116;
|
|
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:
|
|
reason = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
reason = 0;
|
|
}
|
|
public int reason;
|
|
}
|
|
public partial class ResGuildRankChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResGuildRankChange(this);
|
|
}
|
|
|
|
public const uint MsgID = 501118;
|
|
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(info == null)
|
|
{
|
|
info = new List<monsterRemain>();
|
|
}
|
|
info.Add(new monsterRemain());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
info[info.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(info != null)
|
|
{
|
|
info.Clear();
|
|
}
|
|
}
|
|
public List<monsterRemain> info = new List<monsterRemain>();
|
|
}
|
|
public partial class fightingBossInfo : 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 :
|
|
level = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2 :
|
|
configId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3 :
|
|
hp = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 4 :
|
|
type = 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,level);
|
|
ProtoBufUtils.WriteInt32(2,configId);
|
|
ProtoBufUtils.WriteInt64(3,hp);
|
|
ProtoBufUtils.WriteInt32(4,type);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
level = 0;
|
|
configId = 0;
|
|
hp = 0;
|
|
type = 0;
|
|
}
|
|
public int level;
|
|
public int configId;
|
|
public long hp;
|
|
public int type;
|
|
}
|
|
public partial class ReqMyFightingBoss : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 501211;
|
|
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 ResMyFightingBoss : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResMyFightingBoss(this);
|
|
}
|
|
|
|
public const uint MsgID = 501119;
|
|
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(boss == null)
|
|
{
|
|
boss = new List<fightingBossInfo>();
|
|
}
|
|
boss.Add(new fightingBossInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
boss[boss.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(boss != null)
|
|
{
|
|
boss.Clear();
|
|
}
|
|
}
|
|
public List<fightingBossInfo> boss = new List<fightingBossInfo>();
|
|
}
|
|
public partial class ResSynMonster : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResSynMonster(this);
|
|
}
|
|
|
|
public const uint MsgID = 501109;
|
|
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:
|
|
degree = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
monsterRemain = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3:
|
|
maxDegree = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
degree = 0;
|
|
monsterRemain = 0;
|
|
maxDegree = 0;
|
|
}
|
|
public int degree;
|
|
public int monsterRemain;
|
|
public int maxDegree;
|
|
}
|
|
public partial class harmRank : ProtoBuf.IMessageInfo, ProtoBuf.IExtensible
|
|
{
|
|
public void Send(){}
|
|
public void Excute(){}
|
|
public void ReadMessage(ref int readPos, int totalCount)
|
|
{
|
|
int endIndex = totalCount + readPos - 1;
|
|
while (readPos <= endIndex)
|
|
{
|
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
|
switch (fieldNumber)
|
|
{
|
|
case 1 :
|
|
top = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2 :
|
|
name = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 3 :
|
|
harm = ProtoBufUtils.ReadUint64(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
public int WriteMessage(int fieldNumber)
|
|
{
|
|
ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String);
|
|
int subItemInfoId = ProtoBufUtils.GetSubItemInfoId();
|
|
ProtoBufUtils.SetEmptyLength(subItemInfoId);
|
|
ProtoBufUtils.SetVBeginIndex(subItemInfoId);
|
|
ProtoBufUtils.WriteInt32(1,top);
|
|
ProtoBufUtils.WriteString(2,name);
|
|
ProtoBufUtils.WriteUint64(3,harm);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
top = 0;
|
|
name = null;
|
|
harm = 0;
|
|
}
|
|
public int top;
|
|
public string name;
|
|
public ulong harm;
|
|
}
|
|
public partial class ResSynHarmRank : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResSynHarmRank(this);
|
|
}
|
|
|
|
public const uint MsgID = 501110;
|
|
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(rank == null)
|
|
{
|
|
rank = new List<harmRank>();
|
|
}
|
|
rank.Add(new harmRank());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
rank[rank.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
myRank = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3:
|
|
myHarm = ProtoBufUtils.ReadUint64(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(rank != null)
|
|
{
|
|
rank.Clear();
|
|
}
|
|
myRank = 0;
|
|
myHarm = 0;
|
|
}
|
|
public List<harmRank> rank = new List<harmRank>();
|
|
public int myRank;
|
|
public ulong myHarm;
|
|
}
|
|
public partial class ReqSnatchPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 501206;
|
|
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 ResSnatchPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResSnatchPanel(this);
|
|
}
|
|
|
|
public const uint MsgID = 501111;
|
|
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:
|
|
guildScore = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
guildScore = 0;
|
|
}
|
|
public int guildScore;
|
|
}
|
|
public partial class ReqPanelReady : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 501207;
|
|
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 GuardBlood : 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 :
|
|
blood = 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);
|
|
ProtoBufUtils.WriteInt32(2,blood);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
modelId = 0;
|
|
blood = 0;
|
|
}
|
|
public int modelId;
|
|
public int blood;
|
|
}
|
|
public partial class ResGuardData : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResGuardData(this);
|
|
}
|
|
|
|
public const uint MsgID = 501112;
|
|
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(bloods == null)
|
|
{
|
|
bloods = new List<GuardBlood>();
|
|
}
|
|
bloods.Add(new GuardBlood());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
bloods[bloods.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
progress = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3:
|
|
general = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(bloods != null)
|
|
{
|
|
bloods.Clear();
|
|
}
|
|
progress = 0;
|
|
general = 0;
|
|
}
|
|
public List<GuardBlood> bloods = new List<GuardBlood>();
|
|
public int progress;
|
|
public int general;
|
|
}
|
|
public partial class GuildActiveBabyInfo : 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 :
|
|
score = ProtoBufUtils.ReadUint32(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.WriteUint32(2,score);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
name = null;
|
|
score = 0;
|
|
}
|
|
public string name;
|
|
public uint score;
|
|
}
|
|
public partial class GuildActiveBabyReward : 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 :
|
|
rewardExcelId = ProtoBufUtils.ReadUint32(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.WriteUint32(2,rewardExcelId);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
name = null;
|
|
rewardExcelId = 0;
|
|
}
|
|
public string name;
|
|
public uint rewardExcelId;
|
|
}
|
|
public partial class ReqGuildActiveBabyInfo : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 501208;
|
|
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 ResGuildActiveBabyInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResGuildActiveBabyInfo(this);
|
|
}
|
|
|
|
public const uint MsgID = 501113;
|
|
public void Send(){}
|
|
public void ReadMessage(byte[] bytes)
|
|
{
|
|
lock (ProtoBufUtils.ReadLocker)
|
|
{
|
|
Clear();
|
|
int endIndex = bytes.Length - 1;
|
|
int readPos = 0;
|
|
int totalCount = 0;
|
|
ProtoBufUtils.InitReadData(bytes, ref readPos);
|
|
while (readPos <= endIndex)
|
|
{
|
|
int curType = bytes[readPos] & 7;
|
|
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
|
|
switch (fieldNumber)
|
|
{
|
|
case 1:
|
|
if(infoList == null)
|
|
{
|
|
infoList = new List<GuildActiveBabyInfo>();
|
|
}
|
|
infoList.Add(new GuildActiveBabyInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
infoList[infoList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
if(rewardList == null)
|
|
{
|
|
rewardList = new List<GuildActiveBabyReward>();
|
|
}
|
|
rewardList.Add(new GuildActiveBabyReward());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
rewardList[rewardList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(infoList != null)
|
|
{
|
|
infoList.Clear();
|
|
}
|
|
if(rewardList != null)
|
|
{
|
|
rewardList.Clear();
|
|
}
|
|
}
|
|
public List<GuildActiveBabyInfo> infoList = new List<GuildActiveBabyInfo>();
|
|
public List<GuildActiveBabyReward> rewardList = new List<GuildActiveBabyReward>();
|
|
}
|
|
public partial class ReqFudiHelp : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 501209;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,cfgId);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
cfgId = 0;
|
|
}
|
|
public int cfgId;
|
|
}
|
|
public partial class ReqFudiCanHelp : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 501210;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,cfgId);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
cfgId = 0;
|
|
}
|
|
public int cfgId;
|
|
}
|
|
public partial class ResFudiCanHelp : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResFudiCanHelp(this);
|
|
}
|
|
|
|
public const uint MsgID = 501117;
|
|
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:
|
|
cfgId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
canHelp = ProtoBufUtils.ReadBoolean(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
cfgId = 0;
|
|
canHelp = false;
|
|
}
|
|
public int cfgId;
|
|
public bool canHelp;
|
|
}
|
|
public partial class GuildLastBattleInfo : 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 3 :
|
|
rank = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 1 :
|
|
id = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2 :
|
|
score = 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(3,rank);
|
|
ProtoBufUtils.WriteInt32(1,id);
|
|
ProtoBufUtils.WriteInt32(2,score);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
rank = 0;
|
|
id = 0;
|
|
score = 0;
|
|
}
|
|
public int rank;
|
|
public int id;
|
|
public int score;
|
|
}
|
|
public partial class GuildLastBattleRoleInfo : 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 :
|
|
playerId = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 2 :
|
|
name = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 7 :
|
|
career = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3 :
|
|
rank = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 4 :
|
|
score = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 5 :
|
|
if(facade == null)
|
|
{
|
|
facade = new MSG_Common.FacadeAttribute();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
facade.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 6 :
|
|
if(fashion == null)
|
|
{
|
|
fashion = new List<MSG_NewFashion.NewFashion>();
|
|
}
|
|
fashion.Add(new MSG_NewFashion.NewFashion());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
fashion[fashion.Count - 1].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.WriteInt64(1,playerId);
|
|
ProtoBufUtils.WriteString(2,name);
|
|
ProtoBufUtils.WriteInt32(7,career);
|
|
ProtoBufUtils.WriteInt32(3,rank);
|
|
ProtoBufUtils.WriteInt32(4,score);
|
|
if(facade != null)
|
|
{
|
|
facade.WriteMessage(5);
|
|
}
|
|
for (int i = 0; i < fashion.Count; i++)
|
|
{
|
|
if(fashion != null)
|
|
{
|
|
fashion[i].WriteMessage(6);
|
|
}
|
|
}
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
playerId = 0;
|
|
name = null;
|
|
career = 0;
|
|
rank = 0;
|
|
score = 0;
|
|
if(facade != null)
|
|
{
|
|
facade.Clear();
|
|
}
|
|
if(fashion != null)
|
|
{
|
|
fashion.Clear();
|
|
}
|
|
}
|
|
public long playerId;
|
|
public string name;
|
|
public int career;
|
|
public int rank;
|
|
public int score;
|
|
public MSG_Common.FacadeAttribute facade;
|
|
public List<MSG_NewFashion.NewFashion> fashion = new List<MSG_NewFashion.NewFashion>();
|
|
}
|
|
public partial class ResGuildLastBattleTimeCalc : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResGuildLastBattleTimeCalc(this);
|
|
}
|
|
|
|
public const uint MsgID = 501120;
|
|
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:
|
|
time = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
time = 0;
|
|
}
|
|
public long time;
|
|
}
|
|
public partial class ResGuildLastBattleReport : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResGuildLastBattleReport(this);
|
|
}
|
|
|
|
public const uint MsgID = 501121;
|
|
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(fud == null)
|
|
{
|
|
fud = new List<GuildLastBattleInfo>();
|
|
}
|
|
fud.Add(new GuildLastBattleInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
fud[fud.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
if(roles == null)
|
|
{
|
|
roles = new List<GuildLastBattleRoleInfo>();
|
|
}
|
|
roles.Add(new GuildLastBattleRoleInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
roles[roles.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(fud != null)
|
|
{
|
|
fud.Clear();
|
|
}
|
|
if(roles != null)
|
|
{
|
|
roles.Clear();
|
|
}
|
|
}
|
|
public List<GuildLastBattleInfo> fud = new List<GuildLastBattleInfo>();
|
|
public List<GuildLastBattleRoleInfo> roles = new List<GuildLastBattleRoleInfo>();
|
|
}
|
|
public partial class ReqGuildLastBattleRoleKill : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 501212;
|
|
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 ResGuildLastBattleRoleKill : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResGuildLastBattleRoleKill(this);
|
|
}
|
|
|
|
public const uint MsgID = 501122;
|
|
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:
|
|
kill = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
type = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
kill = 0;
|
|
type = 0;
|
|
}
|
|
public int kill;
|
|
public int type;
|
|
}
|
|
public partial class ResGuildLastBattleKill : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResGuildLastBattleKill(this);
|
|
}
|
|
|
|
public const uint MsgID = 501123;
|
|
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:
|
|
kill = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
if(killer == null)
|
|
{
|
|
killer = new GuildLastBattleRoleInfo();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
killer.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 3:
|
|
if(beKill == null)
|
|
{
|
|
beKill = new GuildLastBattleRoleInfo();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
beKill.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
kill = 0;
|
|
if(killer != null)
|
|
{
|
|
killer.Clear();
|
|
}
|
|
if(beKill != null)
|
|
{
|
|
beKill.Clear();
|
|
}
|
|
}
|
|
public int kill;
|
|
public GuildLastBattleRoleInfo killer;
|
|
public GuildLastBattleRoleInfo beKill;
|
|
}
|
|
public partial class ResGuildLastBattleGameOver : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResGuildLastBattleGameOver(this);
|
|
}
|
|
|
|
public const uint MsgID = 501124;
|
|
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(first == null)
|
|
{
|
|
first = new GuildLastBattleRoleInfo();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
first.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 2:
|
|
if(fud == null)
|
|
{
|
|
fud = new GuildLastBattleInfo();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
fud.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 3:
|
|
if(fudReward == null)
|
|
{
|
|
fudReward = new List<MSG_Common.ShowItemInfo>();
|
|
}
|
|
fudReward.Add(new MSG_Common.ShowItemInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
fudReward[fudReward.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 4:
|
|
if(my == null)
|
|
{
|
|
my = new GuildLastBattleRoleInfo();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
my.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 5:
|
|
if(myReward == null)
|
|
{
|
|
myReward = new List<MSG_Common.ShowItemInfo>();
|
|
}
|
|
myReward.Add(new MSG_Common.ShowItemInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
myReward[myReward.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(first != null)
|
|
{
|
|
first.Clear();
|
|
}
|
|
if(fud != null)
|
|
{
|
|
fud.Clear();
|
|
}
|
|
if(fudReward != null)
|
|
{
|
|
fudReward.Clear();
|
|
}
|
|
if(my != null)
|
|
{
|
|
my.Clear();
|
|
}
|
|
if(myReward != null)
|
|
{
|
|
myReward.Clear();
|
|
}
|
|
}
|
|
public GuildLastBattleRoleInfo first;
|
|
public GuildLastBattleInfo fud;
|
|
public List<MSG_Common.ShowItemInfo> fudReward = new List<MSG_Common.ShowItemInfo>();
|
|
public GuildLastBattleRoleInfo my;
|
|
public List<MSG_Common.ShowItemInfo> myReward = new List<MSG_Common.ShowItemInfo>();
|
|
}
|
|
}
|
|
|