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

2107 lines
70 KiB
C#

using System.Collections.Generic;
using Thousandto.Plugins.Common;
using Thousandto.Code.Logic.Network;
namespace MSG_Guild
{
public partial class GuildInfo : 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 :
lv = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4 :
notice = ProtoBufUtils.ReadString(ref readPos);
break;
case 5 :
guildMoney = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 6 :
icon = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7 :
isAutoJoin = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 8 :
limitLv = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 9 :
fightLv = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 10 :
if(members == null)
{
members = new List<GuildMemberInfo>();
}
members.Add(new GuildMemberInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
members[members.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 11 :
if(applys == null)
{
applys = new List<GuildApplyInfo>();
}
applys.Add(new GuildApplyInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
applys[applys.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 12 :
if(builds == null)
{
builds = new List<GuildBuilding>();
}
builds.Add(new GuildBuilding());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
builds[builds.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 13 :
recruitCd = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 14 :
rank = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 15 :
if(titles == null)
{
titles = new List<GuildTitle>();
}
titles.Add(new GuildTitle());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
titles[titles.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 16 :
rate = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 17 :
maxNum = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 18 :
power = 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.WriteUint64(1,guildId);
ProtoBufUtils.WriteString(2,name);
ProtoBufUtils.WriteInt32(3,lv);
ProtoBufUtils.WriteString(4,notice);
ProtoBufUtils.WriteInt64(5,guildMoney);
ProtoBufUtils.WriteInt32(6,icon);
ProtoBufUtils.WriteBoolean(7,isAutoJoin);
ProtoBufUtils.WriteInt32(8,limitLv);
ProtoBufUtils.WriteInt64(9,fightLv);
for (int i = 0; i < members.Count; i++)
{
if(members != null)
{
members[i].WriteMessage(10);
}
}
for (int i = 0; i < applys.Count; i++)
{
if(applys != null)
{
applys[i].WriteMessage(11);
}
}
for (int i = 0; i < builds.Count; i++)
{
if(builds != null)
{
builds[i].WriteMessage(12);
}
}
ProtoBufUtils.WriteInt64(13,recruitCd);
ProtoBufUtils.WriteInt32(14,rank);
for (int i = 0; i < titles.Count; i++)
{
if(titles != null)
{
titles[i].WriteMessage(15);
}
}
ProtoBufUtils.WriteInt32(16,rate);
ProtoBufUtils.WriteInt32(17,maxNum);
ProtoBufUtils.WriteInt64(18,power);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
guildId = 0;
name = null;
lv = 0;
notice = null;
guildMoney = 0;
icon = 0;
isAutoJoin = false;
limitLv = 0;
fightLv = 0;
if(members != null)
{
members.Clear();
}
if(applys != null)
{
applys.Clear();
}
if(builds != null)
{
builds.Clear();
}
recruitCd = 0;
rank = 0;
if(titles != null)
{
titles.Clear();
}
rate = 0;
maxNum = 0;
power = 0;
}
public ulong guildId;
public string name;
public int lv;
public string notice;
public long guildMoney;
public int icon;
public bool isAutoJoin;
public int limitLv;
public long fightLv;
public List<GuildMemberInfo> members = new List<GuildMemberInfo>();
public List<GuildApplyInfo> applys = new List<GuildApplyInfo>();
public List<GuildBuilding> builds = new List<GuildBuilding>();
public long recruitCd;
public int rank;
public List<GuildTitle> titles = new List<GuildTitle>();
public int rate;
public int maxNum;
public long power;
}
public partial class GuildTitle : 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 :
roleId = 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.WriteUint64(2,roleId);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
rank = 0;
roleId = 0;
}
public int rank;
public ulong roleId;
}
public partial class GuildBaseInfo : 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 :
lv = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4 :
memberNum = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5 :
isApply = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 6 :
limitLv = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7 :
limitfight = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 8 :
fighting = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 9 :
isAutoJoin = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 10 :
if(member == null)
{
member = new GuildMemberInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
member.ReadMessage(ref readPos, totalCount);
break;
case 11 :
rate = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 12 :
maxNum = 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);
ProtoBufUtils.WriteInt32(3,lv);
ProtoBufUtils.WriteInt32(4,memberNum);
ProtoBufUtils.WriteBoolean(5,isApply);
ProtoBufUtils.WriteInt32(6,limitLv);
ProtoBufUtils.WriteInt64(7,limitfight);
ProtoBufUtils.WriteInt64(8,fighting);
ProtoBufUtils.WriteBoolean(9,isAutoJoin);
if(member != null)
{
member.WriteMessage(10);
}
ProtoBufUtils.WriteInt32(11,rate);
ProtoBufUtils.WriteInt32(12,maxNum);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
guildId = 0;
name = null;
lv = 0;
memberNum = 0;
isApply = false;
limitLv = 0;
limitfight = 0;
fighting = 0;
isAutoJoin = false;
if(member != null)
{
member.Clear();
}
rate = 0;
maxNum = 0;
}
public ulong guildId;
public string name;
public int lv;
public int memberNum;
public bool isApply;
public int limitLv;
public long limitfight;
public long fighting;
public bool isAutoJoin;
public GuildMemberInfo member;
public int rate;
public int maxNum;
}
public partial class GuildMemberInfo : 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 :
roleId = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 2 :
name = ProtoBufUtils.ReadString(ref readPos);
break;
case 3 :
career = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4 :
lv = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5 :
vip = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6 :
allcontribute = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 7 :
lastOffTime = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 8 :
fighting = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 9 :
position = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 10 :
isProxy = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 11 :
if(head == null)
{
head = new MSG_Common.HeadAttribute();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
head.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,roleId);
ProtoBufUtils.WriteString(2,name);
ProtoBufUtils.WriteInt32(3,career);
ProtoBufUtils.WriteInt32(4,lv);
ProtoBufUtils.WriteInt32(5,vip);
ProtoBufUtils.WriteInt64(6,allcontribute);
ProtoBufUtils.WriteInt32(7,lastOffTime);
ProtoBufUtils.WriteInt64(8,fighting);
ProtoBufUtils.WriteInt32(9,position);
ProtoBufUtils.WriteBoolean(10,isProxy);
if(head != null)
{
head.WriteMessage(11);
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
roleId = 0;
name = null;
career = 0;
lv = 0;
vip = 0;
allcontribute = 0;
lastOffTime = 0;
fighting = 0;
position = 0;
isProxy = false;
if(head != null)
{
head.Clear();
}
}
public ulong roleId;
public string name;
public int career;
public int lv;
public int vip;
public long allcontribute;
public int lastOffTime;
public long fighting;
public int position;
public bool isProxy;
public MSG_Common.HeadAttribute head;
}
public partial class GuildApplyInfo : 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 :
roleId = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 2 :
name = ProtoBufUtils.ReadString(ref readPos);
break;
case 3 :
lv = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4 :
fighting = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 5 :
career = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6 :
if(head == null)
{
head = new MSG_Common.HeadAttribute();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
head.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,roleId);
ProtoBufUtils.WriteString(2,name);
ProtoBufUtils.WriteInt32(3,lv);
ProtoBufUtils.WriteInt64(4,fighting);
ProtoBufUtils.WriteInt32(5,career);
if(head != null)
{
head.WriteMessage(6);
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
roleId = 0;
name = null;
lv = 0;
fighting = 0;
career = 0;
if(head != null)
{
head.Clear();
}
}
public ulong roleId;
public string name;
public int lv;
public long fighting;
public int career;
public MSG_Common.HeadAttribute head;
}
public partial class GuildBuilding : 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 :
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,type);
ProtoBufUtils.WriteInt32(2,level);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
type = 0;
level = 0;
}
public int type;
public int level;
}
public partial class GuildLogInfo : 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 :
time = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3 :
if(str == null)
{
str = new List<string>();
}
str.Add(ProtoBufUtils.ReadString(ref readPos));
break;
default:
break;
}
}
}
public int WriteMessage(int fieldNumber)
{
ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String);
int subItemInfoId = ProtoBufUtils.GetSubItemInfoId();
ProtoBufUtils.SetEmptyLength(subItemInfoId);
ProtoBufUtils.SetVBeginIndex(subItemInfoId);
ProtoBufUtils.WriteInt32(1,type);
ProtoBufUtils.WriteInt32(2,time);
for (int i = 0; i < str.Count; i++)
{
ProtoBufUtils.WriteString(3,str[i]);
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
type = 0;
time = 0;
if(str != null)
{
str.Clear();
}
}
public int type;
public int time;
public List<string> str = new List<string>();
}
public partial class GuildGift : 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 :
gift = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3 :
sender = ProtoBufUtils.ReadString(ref readPos);
break;
case 4 :
timeOut = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 5 :
if(reward == null)
{
reward = new List<MSG_Common.ShowItemInfo>();
}
reward.Add(new MSG_Common.ShowItemInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
reward[reward.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,id);
ProtoBufUtils.WriteInt32(2,gift);
ProtoBufUtils.WriteString(3,sender);
ProtoBufUtils.WriteInt64(4,timeOut);
for (int i = 0; i < reward.Count; i++)
{
if(reward != null)
{
reward[i].WriteMessage(5);
}
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
id = 0;
gift = 0;
sender = null;
timeOut = 0;
if(reward != null)
{
reward.Clear();
}
}
public long id;
public int gift;
public string sender;
public long timeOut;
public List<MSG_Common.ShowItemInfo> reward = new List<MSG_Common.ShowItemInfo>();
}
public partial class GuildGiftHistory : 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 :
sender = ProtoBufUtils.ReadString(ref readPos);
break;
case 2 :
gift = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3 :
time = 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.WriteString(1,sender);
ProtoBufUtils.WriteInt32(2,gift);
ProtoBufUtils.WriteInt64(3,time);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
sender = null;
gift = 0;
time = 0;
}
public string sender;
public int gift;
public long time;
}
public partial class ReqRecommendGuild : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131201;
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 ReqCreateGuild : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131202;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteString(1,name);
ProtoBufUtils.WriteInt32(2,icon);
ProtoBufUtils.WriteString(3,notice);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
name = null;
icon = 0;
notice = null;
}
public string name;
public int icon;
public string notice;
}
public partial class ReqJoinGuild : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131203;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
for (int i = 0; i < ids.Count; i++)
{
ProtoBufUtils.WriteUint64(1,ids[i]);
}
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
if(ids != null)
{
ids.Clear();
}
}
public List<ulong> ids = new List<ulong>();
}
public partial class ReqDealApplyInfo : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131205;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
for (int i = 0; i < roleId.Count; i++)
{
ProtoBufUtils.WriteUint64(1,roleId[i]);
}
ProtoBufUtils.WriteBoolean(2,agree);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
if(roleId != null)
{
roleId.Clear();
}
agree = false;
}
public List<ulong> roleId = new List<ulong>();
public bool agree;
}
public partial class ReqChangeGuildName : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131206;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteString(1,name);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
name = null;
}
public string name;
}
public partial class ReqSetRank : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131207;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteUint64(1,roleId);
ProtoBufUtils.WriteInt32(2,rank);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
roleId = 0;
rank = 0;
}
public ulong roleId;
public int rank;
}
public partial class ReqChangeGuildSetting : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131208;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteBoolean(1,isAutoApply);
ProtoBufUtils.WriteInt32(2,lv);
ProtoBufUtils.WriteInt32(3,icon);
ProtoBufUtils.WriteString(4,notice);
ProtoBufUtils.WriteInt64(5,fightPoint);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
isAutoApply = false;
lv = 0;
icon = 0;
notice = null;
fightPoint = 0;
}
public bool isAutoApply;
public int lv;
public int icon;
public string notice;
public long fightPoint;
}
public partial class ReqGuildLogList : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131210;
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 ReqGuildInfo : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131211;
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 ReqKickOutGuild : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131212;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteUint64(1,roleId);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
roleId = 0;
}
public ulong roleId;
}
public partial class ReqQuitGuild : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131213;
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 ReqUpBuildingLevel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131214;
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 ReqImpeach : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131215;
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 ReqReceiveItem : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131216;
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 ReqGuildJoinPlayer : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131217;
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 ReqGuildBaseEnter : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131218;
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 ReqGuildGiftOpen : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 131219;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt64(1,id);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
id = 0;
}
public long id;
}
public partial class ResRecommendGuild : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResRecommendGuild(this);
}
public const uint MsgID = 131101;
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<GuildBaseInfo>();
}
infoList.Add(new GuildBaseInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
infoList[infoList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(infoList != null)
{
infoList.Clear();
}
}
public List<GuildBaseInfo> infoList = new List<GuildBaseInfo>();
}
public partial class ResCreateGuild : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResCreateGuild(this);
}
public const uint MsgID = 131102;
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(g == null)
{
g = new GuildInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
g.ReadMessage(ref readPos, totalCount);
break;
case 2:
isGet = ProtoBufUtils.ReadBoolean(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(g != null)
{
g.Clear();
}
isGet = false;
}
public GuildInfo g;
public bool isGet;
}
public partial class ResJoinGuild : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResJoinGuild(this);
}
public const uint MsgID = 131103;
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(ids == null)
{
ids = new List<ulong>();
}
ids.Add(ProtoBufUtils.ReadUint64(ref readPos));
break;
case 2:
if(g == null)
{
g = new GuildInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
g.ReadMessage(ref readPos, totalCount);
break;
case 3:
isGet = ProtoBufUtils.ReadBoolean(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(ids != null)
{
ids.Clear();
}
if(g != null)
{
g.Clear();
}
isGet = false;
}
public List<ulong> ids = new List<ulong>();
public GuildInfo g;
public bool isGet;
}
public partial class ResGuildInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResGuildInfo(this);
}
public const uint MsgID = 131104;
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(g == null)
{
g = new GuildInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
g.ReadMessage(ref readPos, totalCount);
break;
case 2:
isGet = ProtoBufUtils.ReadBoolean(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(g != null)
{
g.Clear();
}
isGet = false;
}
public GuildInfo g;
public bool isGet;
}
public partial class ResDealApplyInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResDealApplyInfo(this);
}
public const uint MsgID = 131105;
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(roleId == null)
{
roleId = new List<ulong>();
}
roleId.Add(ProtoBufUtils.ReadUint64(ref readPos));
break;
default:
break;
}
}
}
}
public void Clear()
{
if(roleId != null)
{
roleId.Clear();
}
}
public List<ulong> roleId = new List<ulong>();
}
public partial class ResChangeGuildName : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResChangeGuildName(this);
}
public const uint MsgID = 131106;
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:
name = ProtoBufUtils.ReadString(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
name = null;
}
public string name;
}
public partial class ResPlayerGuildRankChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResPlayerGuildRankChange(this);
}
public const uint MsgID = 131107;
public void Send(){}
public void ReadMessage(byte[] bytes)
{
lock (ProtoBufUtils.ReadLocker)
{
Clear();
int endIndex = bytes.Length - 1;
int readPos = 0;
int totalCount = 0;
ProtoBufUtils.InitReadData(bytes, ref readPos);
while (readPos <= endIndex)
{
int curType = bytes[readPos] & 7;
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
switch (fieldNumber)
{
case 1:
roleId = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 2:
rank = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
roleId = 0;
rank = 0;
}
public ulong roleId;
public int rank;
}
public partial class ResChangeGuildSetting : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResChangeGuildSetting(this);
}
public const uint MsgID = 131108;
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:
isAutoApply = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 2:
lv = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
icon = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
notice = ProtoBufUtils.ReadString(ref readPos);
break;
case 5:
fightPoint = ProtoBufUtils.ReadInt64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
isAutoApply = false;
lv = 0;
icon = 0;
notice = null;
fightPoint = 0;
}
public bool isAutoApply;
public int lv;
public int icon;
public string notice;
public long fightPoint;
}
public partial class ResGuildMemeberList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResGuildMemeberList(this);
}
public const uint MsgID = 131109;
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<GuildMemberInfo>();
}
infoList.Add(new GuildMemberInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
infoList[infoList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(infoList != null)
{
infoList.Clear();
}
}
public List<GuildMemberInfo> infoList = new List<GuildMemberInfo>();
}
public partial class ResGuildLogList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResGuildLogList(this);
}
public const uint MsgID = 131110;
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<GuildLogInfo>();
}
infoList.Add(new GuildLogInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
infoList[infoList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(infoList != null)
{
infoList.Clear();
}
}
public List<GuildLogInfo> infoList = new List<GuildLogInfo>();
}
public partial class ResQuitGuild : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResQuitGuild(this);
}
public const uint MsgID = 131112;
public void Send(){}
public void ReadMessage(byte[] bytes)
{
lock (ProtoBufUtils.ReadLocker)
{
Clear();
int endIndex = bytes.Length - 1;
int readPos = 0;
int totalCount = 0;
ProtoBufUtils.InitReadData(bytes, ref readPos);
while (readPos <= endIndex)
{
int curType = bytes[readPos] & 7;
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
switch (fieldNumber)
{
case 1:
roleId = ProtoBufUtils.ReadUint64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
roleId = 0;
}
public ulong roleId;
}
public partial class ResUpBuildingSucces : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResUpBuildingSucces(this);
}
public const uint MsgID = 131113;
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(b == null)
{
b = new GuildBuilding();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
b.ReadMessage(ref readPos, totalCount);
break;
case 2:
guildMoney = ProtoBufUtils.ReadInt64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(b != null)
{
b.Clear();
}
guildMoney = 0;
}
public GuildBuilding b;
public long guildMoney;
}
public partial class ResImpeach : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResImpeach(this);
}
public const uint MsgID = 131114;
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:
res = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
res = 0;
}
public int res;
}
public partial class ResReceiveItem : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResReceiveItem(this);
}
public const uint MsgID = 131115;
public void Send(){}
public void ReadMessage(byte[] bytes)
{
lock (ProtoBufUtils.ReadLocker)
{
Clear();
int endIndex = bytes.Length - 1;
int readPos = 0;
int totalCount = 0;
ProtoBufUtils.InitReadData(bytes, ref readPos);
while (readPos <= endIndex)
{
int curType = bytes[readPos] & 7;
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
switch (fieldNumber)
{
default:
break;
}
}
}
}
public void Clear()
{
}
}
public partial class ResGuildJoinPlayer : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResGuildJoinPlayer(this);
}
public const uint MsgID = 131116;
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:
cd = ProtoBufUtils.ReadUint64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
cd = 0;
}
public ulong cd;
}
public partial class ResGuildApplyPlayer : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResGuildApplyPlayer(this);
}
public const uint MsgID = 131117;
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(apply == null)
{
apply = new GuildApplyInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
apply.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(apply != null)
{
apply.Clear();
}
}
public GuildApplyInfo apply;
}
public partial class ResGuildGiftList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResGuildGiftList(this);
}
public const uint MsgID = 131118;
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(gifts == null)
{
gifts = new List<GuildGift>();
}
gifts.Add(new GuildGift());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
gifts[gifts.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 2:
if(history == null)
{
history = new List<GuildGiftHistory>();
}
history.Add(new GuildGiftHistory());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
history[history.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(gifts != null)
{
gifts.Clear();
}
if(history != null)
{
history.Clear();
}
}
public List<GuildGift> gifts = new List<GuildGift>();
public List<GuildGiftHistory> history = new List<GuildGiftHistory>();
}
public partial class ResGuildGiftUpdate : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResGuildGiftUpdate(this);
}
public const uint MsgID = 131119;
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(gift == null)
{
gift = new GuildGift();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
gift.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(gift != null)
{
gift.Clear();
}
}
public GuildGift gift;
}
public partial class ResGuildGiftDelete : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResGuildGiftDelete(this);
}
public const uint MsgID = 131120;
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(ids == null)
{
ids = new List<long>();
}
ids.Add(ProtoBufUtils.ReadInt64(ref readPos));
break;
default:
break;
}
}
}
}
public void Clear()
{
if(ids != null)
{
ids.Clear();
}
}
public List<long> ids = new List<long>();
}
public partial class ResGuildGiftHistory : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResGuildGiftHistory(this);
}
public const uint MsgID = 131121;
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(history == null)
{
history = new GuildGiftHistory();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
history.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(history != null)
{
history.Clear();
}
}
public GuildGiftHistory history;
}
}