1224 lines
43 KiB
C#
1224 lines
43 KiB
C#
using System.Collections.Generic;
|
|
using Thousandto.Plugins.Common;
|
|
using Thousandto.Code.Logic.Network;
|
|
|
|
namespace MSG_Community
|
|
{
|
|
public partial class ReqPlayerCommunityInfoSetting : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 194201;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt32(1,settingType);
|
|
if(playerCommunityInfoSettingInfo != null)
|
|
{
|
|
playerCommunityInfoSettingInfo.WriteMessage(2);
|
|
}
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
settingType = 0;
|
|
if(playerCommunityInfoSettingInfo != null)
|
|
{
|
|
playerCommunityInfoSettingInfo.Clear();
|
|
}
|
|
}
|
|
public int settingType;
|
|
public PlayerCommunityInfoSettingInfo playerCommunityInfoSettingInfo;
|
|
}
|
|
public partial class PlayerCommunityInfoSettingInfo : 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 :
|
|
decorate = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2 :
|
|
pendan = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 3 :
|
|
sign = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 4 :
|
|
brith = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 5 :
|
|
isNotFriendLeaveMsg = 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,decorate);
|
|
ProtoBufUtils.WriteInt32(2,pendan);
|
|
ProtoBufUtils.WriteString(3,sign);
|
|
ProtoBufUtils.WriteString(4,brith);
|
|
ProtoBufUtils.WriteBoolean(5,isNotFriendLeaveMsg);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
decorate = 0;
|
|
pendan = 0;
|
|
sign = null;
|
|
brith = null;
|
|
isNotFriendLeaveMsg = false;
|
|
}
|
|
public int decorate;
|
|
public int pendan;
|
|
public string sign;
|
|
public string brith;
|
|
public bool isNotFriendLeaveMsg;
|
|
}
|
|
public partial class ResPlayerCommunityInfoSetting : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResPlayerCommunityInfoSetting(this);
|
|
}
|
|
|
|
public const uint MsgID = 194101;
|
|
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:
|
|
settingType = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
isSettingSucceed = ProtoBufUtils.ReadBoolean(ref readPos);
|
|
break;
|
|
case 3:
|
|
if(playerCommunityInfoSettingInfo == null)
|
|
{
|
|
playerCommunityInfoSettingInfo = new PlayerCommunityInfoSettingInfo();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
playerCommunityInfoSettingInfo.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
settingType = 0;
|
|
isSettingSucceed = false;
|
|
if(playerCommunityInfoSettingInfo != null)
|
|
{
|
|
playerCommunityInfoSettingInfo.Clear();
|
|
}
|
|
}
|
|
public int settingType;
|
|
public bool isSettingSucceed;
|
|
public PlayerCommunityInfoSettingInfo playerCommunityInfoSettingInfo;
|
|
}
|
|
public partial class ReqPlayerCommunityInfo : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 194202;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt64(1,roleId);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
}
|
|
public long roleId;
|
|
}
|
|
public partial class PlayerCommunityInfo : 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 :
|
|
roleName = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 3 :
|
|
roleLv = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 4 :
|
|
career = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 5 :
|
|
fightpower = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 6 :
|
|
guildName = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 7 :
|
|
serverId = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 8 :
|
|
if(facade == null)
|
|
{
|
|
facade = new MSG_Common.FacadeAttribute();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
facade.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
case 9 :
|
|
stateLv = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 10 :
|
|
if(playerCommunityInfoSettingInfo == null)
|
|
{
|
|
playerCommunityInfoSettingInfo = new PlayerCommunityInfoSettingInfo();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
playerCommunityInfoSettingInfo.ReadMessage(ref readPos, totalCount);
|
|
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,roleName);
|
|
ProtoBufUtils.WriteInt32(3,roleLv);
|
|
ProtoBufUtils.WriteInt32(4,career);
|
|
ProtoBufUtils.WriteInt64(5,fightpower);
|
|
ProtoBufUtils.WriteString(6,guildName);
|
|
ProtoBufUtils.WriteInt32(7,serverId);
|
|
if(facade != null)
|
|
{
|
|
facade.WriteMessage(8);
|
|
}
|
|
ProtoBufUtils.WriteInt32(9,stateLv);
|
|
if(playerCommunityInfoSettingInfo != null)
|
|
{
|
|
playerCommunityInfoSettingInfo.WriteMessage(10);
|
|
}
|
|
if(head != null)
|
|
{
|
|
head.WriteMessage(11);
|
|
}
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
roleName = null;
|
|
roleLv = 0;
|
|
career = 0;
|
|
fightpower = 0;
|
|
guildName = null;
|
|
serverId = 0;
|
|
if(facade != null)
|
|
{
|
|
facade.Clear();
|
|
}
|
|
stateLv = 0;
|
|
if(playerCommunityInfoSettingInfo != null)
|
|
{
|
|
playerCommunityInfoSettingInfo.Clear();
|
|
}
|
|
if(head != null)
|
|
{
|
|
head.Clear();
|
|
}
|
|
}
|
|
public ulong roleId;
|
|
public string roleName;
|
|
public int roleLv;
|
|
public int career;
|
|
public long fightpower;
|
|
public string guildName;
|
|
public int serverId;
|
|
public MSG_Common.FacadeAttribute facade;
|
|
public int stateLv;
|
|
public PlayerCommunityInfoSettingInfo playerCommunityInfoSettingInfo;
|
|
public MSG_Common.HeadAttribute head;
|
|
}
|
|
public partial class ResPlayerCommunityInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResPlayerCommunityInfo(this);
|
|
}
|
|
|
|
public const uint MsgID = 194102;
|
|
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(playerCommunityInfo == null)
|
|
{
|
|
playerCommunityInfo = new PlayerCommunityInfo();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
playerCommunityInfo.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(playerCommunityInfo != null)
|
|
{
|
|
playerCommunityInfo.Clear();
|
|
}
|
|
}
|
|
public PlayerCommunityInfo playerCommunityInfo;
|
|
}
|
|
public partial class G2SReqPlayerCommunityInfoSetting : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2SReqPlayerCommunityInfoSetting(this);
|
|
}
|
|
|
|
public const uint MsgID = 194303;
|
|
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:
|
|
settingType = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 2:
|
|
if(playerCommunityInfoSettingInfo == null)
|
|
{
|
|
playerCommunityInfoSettingInfo = new PlayerCommunityInfoSettingInfo();
|
|
}
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
playerCommunityInfoSettingInfo.ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
settingType = 0;
|
|
if(playerCommunityInfoSettingInfo != null)
|
|
{
|
|
playerCommunityInfoSettingInfo.Clear();
|
|
}
|
|
}
|
|
public int settingType;
|
|
public PlayerCommunityInfoSettingInfo playerCommunityInfoSettingInfo;
|
|
}
|
|
public partial class G2SReqPlayerCommunityInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2SReqPlayerCommunityInfo(this);
|
|
}
|
|
|
|
public const uint MsgID = 194304;
|
|
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;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
}
|
|
public long roleId;
|
|
}
|
|
public partial class CommunityLeaveMessageInfo : 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 :
|
|
leaveMessageId = ProtoBufUtils.ReadUint64(ref readPos);
|
|
break;
|
|
case 2 :
|
|
chatername = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 3 :
|
|
condition = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 4 :
|
|
time = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 5 :
|
|
level = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 6 :
|
|
chaterSid = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 7 :
|
|
career = ProtoBufUtils.ReadInt32(ref readPos);
|
|
break;
|
|
case 8 :
|
|
roleId = ProtoBufUtils.ReadUint64(ref readPos);
|
|
break;
|
|
case 9 :
|
|
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,leaveMessageId);
|
|
ProtoBufUtils.WriteString(2,chatername);
|
|
ProtoBufUtils.WriteString(3,condition);
|
|
ProtoBufUtils.WriteInt32(4,time);
|
|
ProtoBufUtils.WriteInt32(5,level);
|
|
ProtoBufUtils.WriteInt32(6,chaterSid);
|
|
ProtoBufUtils.WriteInt32(7,career);
|
|
ProtoBufUtils.WriteUint64(8,roleId);
|
|
if(head != null)
|
|
{
|
|
head.WriteMessage(9);
|
|
}
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
leaveMessageId = 0;
|
|
chatername = null;
|
|
condition = null;
|
|
time = 0;
|
|
level = 0;
|
|
chaterSid = 0;
|
|
career = 0;
|
|
roleId = 0;
|
|
if(head != null)
|
|
{
|
|
head.Clear();
|
|
}
|
|
}
|
|
public ulong leaveMessageId;
|
|
public string chatername;
|
|
public string condition;
|
|
public int time;
|
|
public int level;
|
|
public int chaterSid;
|
|
public int career;
|
|
public ulong roleId;
|
|
public MSG_Common.HeadAttribute head;
|
|
}
|
|
public partial class ReqCommunityLeaveMessage : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 194205;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt64(1,roleId);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
}
|
|
public long roleId;
|
|
}
|
|
public partial class G2SReqCommunityLeaveMessage : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2SReqCommunityLeaveMessage(this);
|
|
}
|
|
|
|
public const uint MsgID = 194305;
|
|
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;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
}
|
|
public long roleId;
|
|
}
|
|
public partial class ResCommunityLeaveMessage : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResCommunityLeaveMessage(this);
|
|
}
|
|
|
|
public const uint MsgID = 194105;
|
|
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(communityLeaveMessageInfoList == null)
|
|
{
|
|
communityLeaveMessageInfoList = new List<CommunityLeaveMessageInfo>();
|
|
}
|
|
communityLeaveMessageInfoList.Add(new CommunityLeaveMessageInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
communityLeaveMessageInfoList[communityLeaveMessageInfoList.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
if(communityLeaveMessageInfoList != null)
|
|
{
|
|
communityLeaveMessageInfoList.Clear();
|
|
}
|
|
}
|
|
public List<CommunityLeaveMessageInfo> communityLeaveMessageInfoList = new List<CommunityLeaveMessageInfo>();
|
|
}
|
|
public partial class ReqAddCommunityLeaveMessage : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 194206;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt64(1,roleId);
|
|
ProtoBufUtils.WriteString(2,condition);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
condition = null;
|
|
}
|
|
public long roleId;
|
|
public string condition;
|
|
}
|
|
public partial class G2SReqAddCommunityLeaveMessage : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2SReqAddCommunityLeaveMessage(this);
|
|
}
|
|
|
|
public const uint MsgID = 194306;
|
|
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:
|
|
condition = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 3:
|
|
isFriend = ProtoBufUtils.ReadBoolean(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
condition = null;
|
|
isFriend = false;
|
|
}
|
|
public long roleId;
|
|
public string condition;
|
|
public bool isFriend;
|
|
}
|
|
public partial class ReqDeleteCommunityLeaveMessage : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 194207;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt64(1,roleId);
|
|
ProtoBufUtils.WriteUint64(2,leaveMessageId);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
leaveMessageId = 0;
|
|
}
|
|
public long roleId;
|
|
public ulong leaveMessageId;
|
|
}
|
|
public partial class G2SReqDeleteCommunityLeaveMessage : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2SReqDeleteCommunityLeaveMessage(this);
|
|
}
|
|
|
|
public const uint MsgID = 194307;
|
|
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:
|
|
leaveMessageId = ProtoBufUtils.ReadUint64(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
leaveMessageId = 0;
|
|
}
|
|
public long roleId;
|
|
public ulong leaveMessageId;
|
|
}
|
|
public partial class ReqFriendCircle : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 194208;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt64(1,roleId);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
}
|
|
public long roleId;
|
|
}
|
|
public partial class G2SReqFriendCircle : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2SReqFriendCircle(this);
|
|
}
|
|
|
|
public const uint MsgID = 194308;
|
|
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;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
}
|
|
public long roleId;
|
|
}
|
|
public partial class FriendCircleLeaveMessageInfo : 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 :
|
|
chatername = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 2 :
|
|
condition = 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.WriteString(1,chatername);
|
|
ProtoBufUtils.WriteString(2,condition);
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
chatername = null;
|
|
condition = null;
|
|
}
|
|
public string chatername;
|
|
public string condition;
|
|
}
|
|
public partial class FriendCircleInfo : 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 :
|
|
friendCircleId = ProtoBufUtils.ReadUint64(ref readPos);
|
|
break;
|
|
case 3 :
|
|
condition = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
case 10 :
|
|
if(friendCircleLeaveMessageInfo == null)
|
|
{
|
|
friendCircleLeaveMessageInfo = new List<FriendCircleLeaveMessageInfo>();
|
|
}
|
|
friendCircleLeaveMessageInfo.Add(new FriendCircleLeaveMessageInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
friendCircleLeaveMessageInfo[friendCircleLeaveMessageInfo.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,friendCircleId);
|
|
ProtoBufUtils.WriteString(3,condition);
|
|
for (int i = 0; i < friendCircleLeaveMessageInfo.Count; i++)
|
|
{
|
|
if(friendCircleLeaveMessageInfo != null)
|
|
{
|
|
friendCircleLeaveMessageInfo[i].WriteMessage(10);
|
|
}
|
|
}
|
|
ProtoBufUtils.SetVEndIndex(subItemInfoId);
|
|
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
|
|
}
|
|
public void Clear()
|
|
{
|
|
friendCircleId = 0;
|
|
condition = null;
|
|
if(friendCircleLeaveMessageInfo != null)
|
|
{
|
|
friendCircleLeaveMessageInfo.Clear();
|
|
}
|
|
}
|
|
public ulong friendCircleId;
|
|
public string condition;
|
|
public List<FriendCircleLeaveMessageInfo> friendCircleLeaveMessageInfo = new List<FriendCircleLeaveMessageInfo>();
|
|
}
|
|
public partial class ResFriendCircleList : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_ResFriendCircleList(this);
|
|
}
|
|
|
|
public const uint MsgID = 194108;
|
|
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(friendCircleInfo == null)
|
|
{
|
|
friendCircleInfo = new List<FriendCircleInfo>();
|
|
}
|
|
friendCircleInfo.Add(new FriendCircleInfo());
|
|
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
|
|
friendCircleInfo[friendCircleInfo.Count - 1].ReadMessage(ref readPos, totalCount);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
type = 0;
|
|
if(friendCircleInfo != null)
|
|
{
|
|
friendCircleInfo.Clear();
|
|
}
|
|
}
|
|
public int type;
|
|
public List<FriendCircleInfo> friendCircleInfo = new List<FriendCircleInfo>();
|
|
}
|
|
public partial class ReqSendFriendCircle : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 194209;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt64(1,roleId);
|
|
ProtoBufUtils.WriteString(2,condition);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
condition = null;
|
|
}
|
|
public long roleId;
|
|
public string condition;
|
|
}
|
|
public partial class G2SReqSendFriendCircle : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2SReqSendFriendCircle(this);
|
|
}
|
|
|
|
public const uint MsgID = 194309;
|
|
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:
|
|
condition = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
condition = null;
|
|
}
|
|
public long roleId;
|
|
public string condition;
|
|
}
|
|
public partial class ReqDeleteFriendCircle : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 194210;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteUint64(1,friendCircleId);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
friendCircleId = 0;
|
|
}
|
|
public ulong friendCircleId;
|
|
}
|
|
public partial class G2SReqDeleteFriendCircle : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2SReqDeleteFriendCircle(this);
|
|
}
|
|
|
|
public const uint MsgID = 194310;
|
|
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:
|
|
friendCircleId = ProtoBufUtils.ReadUint64(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
roleId = 0;
|
|
friendCircleId = 0;
|
|
}
|
|
public long roleId;
|
|
public ulong friendCircleId;
|
|
}
|
|
public partial class ReqCommentFriendCircle : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
|
|
{
|
|
|
|
public const uint MsgID = 194211;
|
|
public void Excute(){}
|
|
public void Send()
|
|
{
|
|
lock (ProtoBufUtils.WriteLocker)
|
|
{
|
|
byte[] bytes = null;
|
|
ProtoBufUtils.InitWriteData();
|
|
ProtoBufUtils.WriteInt64(1,targetRoleId);
|
|
ProtoBufUtils.WriteUint64(2,friendCircleId);
|
|
ProtoBufUtils.WriteString(3,commentCondition);
|
|
bytes = ProtoBufUtils.GetData();
|
|
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
targetRoleId = 0;
|
|
friendCircleId = 0;
|
|
commentCondition = null;
|
|
}
|
|
public long targetRoleId;
|
|
public ulong friendCircleId;
|
|
public string commentCondition;
|
|
}
|
|
public partial class G2SReqCommentFriendCircle : ProtoBuf.IExtensible, ProtoBuf.IResMessage
|
|
{
|
|
public void Excute()
|
|
{
|
|
HandleMsgResult.getInstance().GS2U_G2SReqCommentFriendCircle(this);
|
|
}
|
|
|
|
public const uint MsgID = 194311;
|
|
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:
|
|
targetRoleId = ProtoBufUtils.ReadInt64(ref readPos);
|
|
break;
|
|
case 2:
|
|
friendCircleId = ProtoBufUtils.ReadUint64(ref readPos);
|
|
break;
|
|
case 3:
|
|
commentCondition = ProtoBufUtils.ReadString(ref readPos);
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public void Clear()
|
|
{
|
|
targetRoleId = 0;
|
|
friendCircleId = 0;
|
|
commentCondition = null;
|
|
}
|
|
public long targetRoleId;
|
|
public ulong friendCircleId;
|
|
public string commentCondition;
|
|
}
|
|
}
|
|
|