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

1794 lines
63 KiB
C#

using System.Collections.Generic;
using Thousandto.Plugins.Common;
using Thousandto.Code.Logic.Network;
namespace MSG_Friend
{
public partial class CommonInfo : 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.ReadUint64(ref readPos);
break;
case 2 :
name = ProtoBufUtils.ReadString(ref readPos);
break;
case 3 :
lv = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4 :
career = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5 :
isOnline = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 6 :
intimacy = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7 :
lastofftime = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 8 :
viplevel = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 9 :
hasMarry = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 10 :
isGiveFriendshipPoint = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 11 :
isReceiveFriendshipPoint = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 12 :
isFriendshipPointAward = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 13 :
serverId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 14 :
isFriend = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 15 :
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,playerId);
ProtoBufUtils.WriteString(2,name);
ProtoBufUtils.WriteInt32(3,lv);
ProtoBufUtils.WriteInt32(4,career);
ProtoBufUtils.WriteBoolean(5,isOnline);
ProtoBufUtils.WriteInt32(6,intimacy);
ProtoBufUtils.WriteInt32(7,lastofftime);
ProtoBufUtils.WriteInt32(8,viplevel);
ProtoBufUtils.WriteBoolean(9,hasMarry);
ProtoBufUtils.WriteBoolean(10,isGiveFriendshipPoint);
ProtoBufUtils.WriteBoolean(11,isReceiveFriendshipPoint);
ProtoBufUtils.WriteBoolean(12,isFriendshipPointAward);
ProtoBufUtils.WriteInt32(13,serverId);
ProtoBufUtils.WriteBoolean(14,isFriend);
if(head != null)
{
head.WriteMessage(15);
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
playerId = 0;
name = null;
lv = 0;
career = 0;
isOnline = false;
intimacy = 0;
lastofftime = 0;
viplevel = 0;
hasMarry = false;
isGiveFriendshipPoint = false;
isReceiveFriendshipPoint = false;
isFriendshipPointAward = false;
serverId = 0;
isFriend = false;
if(head != null)
{
head.Clear();
}
}
public ulong playerId;
public string name;
public int lv;
public int career;
public bool isOnline;
public int intimacy;
public int lastofftime;
public int viplevel;
public bool hasMarry;
public bool isGiveFriendshipPoint;
public bool isReceiveFriendshipPoint;
public bool isFriendshipPointAward;
public int serverId;
public bool isFriend;
public MSG_Common.HeadAttribute head;
}
public partial class ReqGetRelationList : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 116201;
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 ReqAddRelation : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 116202;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteUint64(1,targetPlayerId);
ProtoBufUtils.WriteInt32(2,type);
ProtoBufUtils.WriteInt32(3,targetServerId);
ProtoBufUtils.WriteString(4,targetPlayerName);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
targetPlayerId = 0;
type = 0;
targetServerId = 0;
targetPlayerName = null;
}
public ulong targetPlayerId;
public int type;
public int targetServerId;
public string targetPlayerName;
}
public partial class ReqDeleteRelation : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 116203;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteUint64(1,targetPlayerId);
ProtoBufUtils.WriteInt32(2,type);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
targetPlayerId = 0;
type = 0;
}
public ulong targetPlayerId;
public int type;
}
public partial class ReqDimSelect : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 116204;
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 ResFriendList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResFriendList(this);
}
public const uint MsgID = 116101;
public void Send(){}
public void ReadMessage(byte[] bytes)
{
lock (ProtoBufUtils.ReadLocker)
{
Clear();
int endIndex = bytes.Length - 1;
int readPos = 0;
int totalCount = 0;
ProtoBufUtils.InitReadData(bytes, ref readPos);
while (readPos <= endIndex)
{
int curType = bytes[readPos] & 7;
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
switch (fieldNumber)
{
case 1:
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
if(resultList == null)
{
resultList = new List<CommonInfo>();
}
resultList.Add(new CommonInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
resultList[resultList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 3:
marryTargetId = ProtoBufUtils.ReadInt64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
if(resultList != null)
{
resultList.Clear();
}
marryTargetId = 0;
}
public int type;
public List<CommonInfo> resultList = new List<CommonInfo>();
public long marryTargetId;
}
public partial class ResAddFriendSuccess : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResAddFriendSuccess(this);
}
public const uint MsgID = 116102;
public void Send(){}
public void ReadMessage(byte[] bytes)
{
lock (ProtoBufUtils.ReadLocker)
{
Clear();
int endIndex = bytes.Length - 1;
int readPos = 0;
int totalCount = 0;
ProtoBufUtils.InitReadData(bytes, ref readPos);
while (readPos <= endIndex)
{
int curType = bytes[readPos] & 7;
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
switch (fieldNumber)
{
case 1:
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
if(resultList == null)
{
resultList = new List<CommonInfo>();
}
resultList.Add(new CommonInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
resultList[resultList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
if(resultList != null)
{
resultList.Clear();
}
}
public int type;
public List<CommonInfo> resultList = new List<CommonInfo>();
}
public partial class ResDeleteRelationSuccess : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResDeleteRelationSuccess(this);
}
public const uint MsgID = 116103;
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:
targetPlayerId = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 2:
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
targetPlayerId = 0;
type = 0;
}
public ulong targetPlayerId;
public int type;
}
public partial class ResDimSelectList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResDimSelectList(this);
}
public const uint MsgID = 116104;
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(list == null)
{
list = new List<CommonInfo>();
}
list.Add(new CommonInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
list[list.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(list != null)
{
list.Clear();
}
}
public List<CommonInfo> list = new List<CommonInfo>();
}
public partial class ReqReport : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 116205;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt64(1,roleId);
ProtoBufUtils.WriteInt32(2,type);
ProtoBufUtils.WriteString(3,content);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
roleId = 0;
type = 0;
content = null;
}
public long roleId;
public int type;
public string content;
}
public partial class ResIntimacyChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResIntimacyChange(this);
}
public const uint MsgID = 116105;
public void Send(){}
public void ReadMessage(byte[] bytes)
{
lock (ProtoBufUtils.ReadLocker)
{
Clear();
int endIndex = bytes.Length - 1;
int readPos = 0;
int totalCount = 0;
ProtoBufUtils.InitReadData(bytes, ref readPos);
while (readPos <= endIndex)
{
int curType = bytes[readPos] & 7;
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
switch (fieldNumber)
{
case 1:
roleId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 2:
intimacy = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
roleId = 0;
intimacy = 0;
}
public long roleId;
public int intimacy;
}
public partial class ApprovalPlayerInfo : 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.ReadUint64(ref readPos);
break;
case 2 :
name = ProtoBufUtils.ReadString(ref readPos);
break;
case 3 :
lv = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4 :
career = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5 :
serverId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6 :
isShieldAddFriend = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 7 :
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,playerId);
ProtoBufUtils.WriteString(2,name);
ProtoBufUtils.WriteInt32(3,lv);
ProtoBufUtils.WriteInt32(4,career);
ProtoBufUtils.WriteInt32(5,serverId);
ProtoBufUtils.WriteBoolean(6,isShieldAddFriend);
if(head != null)
{
head.WriteMessage(7);
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
playerId = 0;
name = null;
lv = 0;
career = 0;
serverId = 0;
isShieldAddFriend = false;
if(head != null)
{
head.Clear();
}
}
public ulong playerId;
public string name;
public int lv;
public int career;
public int serverId;
public bool isShieldAddFriend;
public MSG_Common.HeadAttribute head;
}
public partial class G2SReqAddRelation : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2SReqAddRelation(this);
}
public const uint MsgID = 116309;
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:
targetPlayerId = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 2:
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
targetServerId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
if(sourceApprovalPlayerInfo == null)
{
sourceApprovalPlayerInfo = new ApprovalPlayerInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
sourceApprovalPlayerInfo.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
targetPlayerId = 0;
type = 0;
targetServerId = 0;
if(sourceApprovalPlayerInfo != null)
{
sourceApprovalPlayerInfo.Clear();
}
}
public ulong targetPlayerId;
public int type;
public int targetServerId;
public ApprovalPlayerInfo sourceApprovalPlayerInfo;
}
public partial class S2GResAddRelation : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_S2GResAddRelation(this);
}
public const uint MsgID = 116409;
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:
targetPlayerId = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 2:
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
targetServerId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
if(sourceApprovalPlayerInfo == null)
{
sourceApprovalPlayerInfo = new ApprovalPlayerInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
sourceApprovalPlayerInfo.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
targetPlayerId = 0;
type = 0;
targetServerId = 0;
if(sourceApprovalPlayerInfo != null)
{
sourceApprovalPlayerInfo.Clear();
}
}
public ulong targetPlayerId;
public int type;
public int targetServerId;
public ApprovalPlayerInfo sourceApprovalPlayerInfo;
}
public partial class G2SReqDeleteRelation : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2SReqDeleteRelation(this);
}
public const uint MsgID = 116310;
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:
targetPlayerId = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 2:
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
sourcePlayerId = ProtoBufUtils.ReadUint64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
targetPlayerId = 0;
type = 0;
sourcePlayerId = 0;
}
public ulong targetPlayerId;
public int type;
public ulong sourcePlayerId;
}
public partial class S2GResDeleteRelation : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_S2GResDeleteRelation(this);
}
public const uint MsgID = 116410;
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:
targetPlayerId = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 2:
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
sourcePlayerId = ProtoBufUtils.ReadUint64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
targetPlayerId = 0;
type = 0;
sourcePlayerId = 0;
}
public ulong targetPlayerId;
public int type;
public ulong sourcePlayerId;
}
public partial class ResAddFriendApprovalToTarget : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResAddFriendApprovalToTarget(this);
}
public const uint MsgID = 116111;
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(sourcePlayer == null)
{
sourcePlayer = new ApprovalPlayerInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
sourcePlayer.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(sourcePlayer != null)
{
sourcePlayer.Clear();
}
}
public ApprovalPlayerInfo sourcePlayer;
}
public partial class ReqAddFriendApproval : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 116212;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
for (int i = 0; i < agreeList.Count; i++)
{
if(agreeList != null)
{
agreeList[i].WriteMessage(1);
}
}
for (int i = 0; i < declineList.Count; i++)
{
if(declineList != null)
{
declineList[i].WriteMessage(2);
}
}
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
if(agreeList != null)
{
agreeList.Clear();
}
if(declineList != null)
{
declineList.Clear();
}
}
public List<ApprovalPlayerInfo> agreeList = new List<ApprovalPlayerInfo>();
public List<ApprovalPlayerInfo> declineList = new List<ApprovalPlayerInfo>();
}
public partial class ResAddFriendApproval : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResAddFriendApproval(this);
}
public const uint MsgID = 116112;
public void Send(){}
public void ReadMessage(byte[] bytes)
{
lock (ProtoBufUtils.ReadLocker)
{
Clear();
int endIndex = bytes.Length - 1;
int readPos = 0;
int totalCount = 0;
ProtoBufUtils.InitReadData(bytes, ref readPos);
while (readPos <= endIndex)
{
int curType = bytes[readPos] & 7;
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
switch (fieldNumber)
{
case 1:
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
if(approvalList == null)
{
approvalList = new List<ApprovalPlayerInfo>();
}
approvalList.Add(new ApprovalPlayerInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
approvalList[approvalList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
if(approvalList != null)
{
approvalList.Clear();
}
}
public int type;
public List<ApprovalPlayerInfo> approvalList = new List<ApprovalPlayerInfo>();
}
public partial class ResAddFriendApprovalList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResAddFriendApprovalList(this);
}
public const uint MsgID = 116113;
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(approvalList == null)
{
approvalList = new List<ApprovalPlayerInfo>();
}
approvalList.Add(new ApprovalPlayerInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
approvalList[approvalList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(approvalList != null)
{
approvalList.Clear();
}
}
public List<ApprovalPlayerInfo> approvalList = new List<ApprovalPlayerInfo>();
}
public partial class ReqGiveFriendShipPoint : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 116214;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,type);
ProtoBufUtils.WriteUint64(2,friendPlayerId);
ProtoBufUtils.WriteInt32(3,friendType);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
type = 0;
friendPlayerId = 0;
friendType = 0;
}
public int type;
public ulong friendPlayerId;
public int friendType;
}
public partial class ResFriendShipPointCommonInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResFriendShipPointCommonInfo(this);
}
public const uint MsgID = 116114;
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(friendInfo == null)
{
friendInfo = new CommonInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
friendInfo.ReadMessage(ref readPos, totalCount);
break;
case 2:
dayFriendShipPoint = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
residueGiveRewardCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
residueReceiveRewardCount = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 5:
friendType = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6:
if(npcFriendInfo == null)
{
npcFriendInfo = new NpcFriendInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
npcFriendInfo.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(friendInfo != null)
{
friendInfo.Clear();
}
dayFriendShipPoint = 0;
residueGiveRewardCount = 0;
residueReceiveRewardCount = 0;
friendType = 0;
if(npcFriendInfo != null)
{
npcFriendInfo.Clear();
}
}
public CommonInfo friendInfo;
public int dayFriendShipPoint;
public int residueGiveRewardCount;
public int residueReceiveRewardCount;
public int friendType;
public NpcFriendInfo npcFriendInfo;
}
public partial class ResFriendShipInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResFriendShipInfo(this);
}
public const uint MsgID = 116115;
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:
dayFriendShipPoint = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
if(npcFriendInfoList == null)
{
npcFriendInfoList = new List<NpcFriendInfo>();
}
npcFriendInfoList.Add(new NpcFriendInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
npcFriendInfoList[npcFriendInfoList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
dayFriendShipPoint = 0;
if(npcFriendInfoList != null)
{
npcFriendInfoList.Clear();
}
}
public int dayFriendShipPoint;
public List<NpcFriendInfo> npcFriendInfoList = new List<NpcFriendInfo>();
}
public partial class NpcFriendInfo : 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 :
npcId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
isGiveFriendshipPoint = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 3 :
isReceiveFriendshipPoint = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 4 :
isFriendshipPointAward = ProtoBufUtils.ReadBoolean(ref readPos);
break;
default:
break;
}
}
}
public int WriteMessage(int fieldNumber)
{
ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String);
int subItemInfoId = ProtoBufUtils.GetSubItemInfoId();
ProtoBufUtils.SetEmptyLength(subItemInfoId);
ProtoBufUtils.SetVBeginIndex(subItemInfoId);
ProtoBufUtils.WriteInt32(1,npcId);
ProtoBufUtils.WriteBoolean(2,isGiveFriendshipPoint);
ProtoBufUtils.WriteBoolean(3,isReceiveFriendshipPoint);
ProtoBufUtils.WriteBoolean(4,isFriendshipPointAward);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
npcId = 0;
isGiveFriendshipPoint = false;
isReceiveFriendshipPoint = false;
isFriendshipPointAward = false;
}
public int npcId;
public bool isGiveFriendshipPoint;
public bool isReceiveFriendshipPoint;
public bool isFriendshipPointAward;
}
public partial class ResFriendNpcList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResFriendNpcList(this);
}
public const uint MsgID = 116118;
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(npcFriendInfoList == null)
{
npcFriendInfoList = new List<NpcFriendInfo>();
}
npcFriendInfoList.Add(new NpcFriendInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
npcFriendInfoList[npcFriendInfoList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(npcFriendInfoList != null)
{
npcFriendInfoList.Clear();
}
}
public List<NpcFriendInfo> npcFriendInfoList = new List<NpcFriendInfo>();
}
public partial class AddFriendApproval : 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 :
targetPlayerId = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 2 :
targetServerId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3 :
targetPlat = ProtoBufUtils.ReadString(ref readPos);
break;
case 4 :
approvalPlayerId = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 5 :
approvalServerId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6 :
approvalPlat = ProtoBufUtils.ReadString(ref readPos);
break;
case 7 :
if(leaveMessage == null)
{
leaveMessage = new MSG_Chat.LeaveMessage();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
leaveMessage.ReadMessage(ref readPos, totalCount);
break;
case 8 :
if(chatResSC == null)
{
chatResSC = new MSG_Chat.ChatResInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
chatResSC.ReadMessage(ref readPos, totalCount);
break;
case 9 :
if(globalPlayerWorldInfo == null)
{
globalPlayerWorldInfo = new MSG_Player.GlobalPlayerWorldInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
globalPlayerWorldInfo.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,targetPlayerId);
ProtoBufUtils.WriteInt32(2,targetServerId);
ProtoBufUtils.WriteString(3,targetPlat);
ProtoBufUtils.WriteUint64(4,approvalPlayerId);
ProtoBufUtils.WriteInt32(5,approvalServerId);
ProtoBufUtils.WriteString(6,approvalPlat);
if(leaveMessage != null)
{
leaveMessage.WriteMessage(7);
}
if(chatResSC != null)
{
chatResSC.WriteMessage(8);
}
if(globalPlayerWorldInfo != null)
{
globalPlayerWorldInfo.WriteMessage(9);
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
targetPlayerId = 0;
targetServerId = 0;
targetPlat = null;
approvalPlayerId = 0;
approvalServerId = 0;
approvalPlat = null;
if(leaveMessage != null)
{
leaveMessage.Clear();
}
if(chatResSC != null)
{
chatResSC.Clear();
}
if(globalPlayerWorldInfo != null)
{
globalPlayerWorldInfo.Clear();
}
}
public ulong targetPlayerId;
public int targetServerId;
public string targetPlat;
public ulong approvalPlayerId;
public int approvalServerId;
public string approvalPlat;
public MSG_Chat.LeaveMessage leaveMessage;
public MSG_Chat.ChatResInfo chatResSC;
public MSG_Player.GlobalPlayerWorldInfo globalPlayerWorldInfo;
}
public partial class G2SReqAddFriendApproval : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2SReqAddFriendApproval(this);
}
public const uint MsgID = 116316;
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(addFriendApproval == null)
{
addFriendApproval = new AddFriendApproval();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
addFriendApproval.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(addFriendApproval != null)
{
addFriendApproval.Clear();
}
}
public AddFriendApproval addFriendApproval;
}
public partial class S2GResAddFriendApproval : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_S2GResAddFriendApproval(this);
}
public const uint MsgID = 116416;
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(addFriendApproval == null)
{
addFriendApproval = new AddFriendApproval();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
addFriendApproval.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(addFriendApproval != null)
{
addFriendApproval.Clear();
}
}
public AddFriendApproval addFriendApproval;
}
public partial class AddFriendAnswer : 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 :
answerType = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
approvalPlayerId = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 3 :
approvalServerId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4 :
approvalTargetPlat = ProtoBufUtils.ReadString(ref readPos);
break;
case 5 :
if(leaveMessage == null)
{
leaveMessage = new MSG_Chat.LeaveMessage();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
leaveMessage.ReadMessage(ref readPos, totalCount);
break;
case 6 :
if(chatResSC == null)
{
chatResSC = new MSG_Chat.ChatResInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
chatResSC.ReadMessage(ref readPos, totalCount);
break;
case 7 :
if(globalPlayerWorldInfo == null)
{
globalPlayerWorldInfo = new MSG_Player.GlobalPlayerWorldInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
globalPlayerWorldInfo.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
public int WriteMessage(int fieldNumber)
{
ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String);
int subItemInfoId = ProtoBufUtils.GetSubItemInfoId();
ProtoBufUtils.SetEmptyLength(subItemInfoId);
ProtoBufUtils.SetVBeginIndex(subItemInfoId);
ProtoBufUtils.WriteInt32(1,answerType);
ProtoBufUtils.WriteUint64(2,approvalPlayerId);
ProtoBufUtils.WriteInt32(3,approvalServerId);
ProtoBufUtils.WriteString(4,approvalTargetPlat);
if(leaveMessage != null)
{
leaveMessage.WriteMessage(5);
}
if(chatResSC != null)
{
chatResSC.WriteMessage(6);
}
if(globalPlayerWorldInfo != null)
{
globalPlayerWorldInfo.WriteMessage(7);
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
answerType = 0;
approvalPlayerId = 0;
approvalServerId = 0;
approvalTargetPlat = null;
if(leaveMessage != null)
{
leaveMessage.Clear();
}
if(chatResSC != null)
{
chatResSC.Clear();
}
if(globalPlayerWorldInfo != null)
{
globalPlayerWorldInfo.Clear();
}
}
public int answerType;
public ulong approvalPlayerId;
public int approvalServerId;
public string approvalTargetPlat;
public MSG_Chat.LeaveMessage leaveMessage;
public MSG_Chat.ChatResInfo chatResSC;
public MSG_Player.GlobalPlayerWorldInfo globalPlayerWorldInfo;
}
public partial class G2SReqAddFriendAnswer : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2SReqAddFriendAnswer(this);
}
public const uint MsgID = 116317;
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(addFriendAnswer == null)
{
addFriendAnswer = new AddFriendAnswer();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
addFriendAnswer.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(addFriendAnswer != null)
{
addFriendAnswer.Clear();
}
}
public AddFriendAnswer addFriendAnswer;
}
public partial class S2GResAddFriendAnswer : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_S2GResAddFriendAnswer(this);
}
public const uint MsgID = 116417;
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(addFriendAnswer == null)
{
addFriendAnswer = new AddFriendAnswer();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
addFriendAnswer.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(addFriendAnswer != null)
{
addFriendAnswer.Clear();
}
}
public AddFriendAnswer addFriendAnswer;
}
public partial class G2SReqGiveFriendShipPoint : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2SReqGiveFriendShipPoint(this);
}
public const uint MsgID = 116318;
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:
givePlayerId = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 2:
friendPlayerId = ProtoBufUtils.ReadUint64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
givePlayerId = 0;
friendPlayerId = 0;
}
public ulong givePlayerId;
public ulong friendPlayerId;
}
public partial class S2GReqGiveFriendShipPoint : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_S2GReqGiveFriendShipPoint(this);
}
public const uint MsgID = 116418;
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:
givePlayerId = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 2:
friendPlayerId = ProtoBufUtils.ReadUint64(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
givePlayerId = 0;
friendPlayerId = 0;
}
public ulong givePlayerId;
public ulong friendPlayerId;
}
public partial class ReqNpcFriendGiveShipPoint : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 116218;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,npcId);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
npcId = 0;
}
public int npcId;
}
}