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

1377 lines
47 KiB
C#

using System.Collections.Generic;
using Thousandto.Plugins.Common;
using Thousandto.Code.Logic.Network;
namespace MSG_Chat
{
public partial class paramStruct : 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 :
mark = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
paramsValue = 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,mark);
ProtoBufUtils.WriteString(2,paramsValue);
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
mark = 0;
paramsValue = null;
}
public int mark;
public string paramsValue;
}
public partial class LeaveMessage : 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 :
chater = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 2 :
chatername = ProtoBufUtils.ReadString(ref readPos);
break;
case 3 :
vipLv = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4 :
condition = ProtoBufUtils.ReadString(ref readPos);
break;
case 5 :
time = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6 :
career = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7 :
moonandOver = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 8 :
level = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 9 :
iconState = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 10 :
chatBgId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 11 :
receiverId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 12 :
channel = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 13 :
chaterSid = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 14 :
systemId = ProtoBufUtils.ReadInt32(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,chater);
ProtoBufUtils.WriteString(2,chatername);
ProtoBufUtils.WriteInt32(3,vipLv);
ProtoBufUtils.WriteString(4,condition);
ProtoBufUtils.WriteInt32(5,time);
ProtoBufUtils.WriteInt32(6,career);
ProtoBufUtils.WriteInt32(7,moonandOver);
ProtoBufUtils.WriteInt32(8,level);
ProtoBufUtils.WriteInt32(9,iconState);
ProtoBufUtils.WriteInt32(10,chatBgId);
ProtoBufUtils.WriteInt64(11,receiverId);
ProtoBufUtils.WriteInt32(12,channel);
ProtoBufUtils.WriteInt32(13,chaterSid);
ProtoBufUtils.WriteInt32(14,systemId);
if(head != null)
{
head.WriteMessage(15);
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
chater = 0;
chatername = null;
vipLv = 0;
condition = null;
time = 0;
career = 0;
moonandOver = 0;
level = 0;
iconState = 0;
chatBgId = 0;
receiverId = 0;
channel = 0;
chaterSid = 0;
systemId = 0;
if(head != null)
{
head.Clear();
}
}
public ulong chater;
public string chatername;
public int vipLv;
public string condition;
public int time;
public int career;
public int moonandOver;
public int level;
public int iconState;
public int chatBgId;
public long receiverId;
public int channel;
public int chaterSid;
public int systemId;
public MSG_Common.HeadAttribute head;
}
public partial class ChatReqCS : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 104201;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,chattype);
ProtoBufUtils.WriteInt32(2,chatchannel);
ProtoBufUtils.WriteUint64(3,recRoleId);
ProtoBufUtils.WriteString(4,condition);
ProtoBufUtils.WriteInt32(5,voiceLen);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
chattype = 0;
chatchannel = 0;
recRoleId = 0;
condition = null;
voiceLen = 0;
}
public int chattype;
public int chatchannel;
public ulong recRoleId;
public string condition;
public int voiceLen;
}
public partial class ChatGetContentCS : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 104202;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteString(1,key);
ProtoBufUtils.WriteInt32(2,chatchannel);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
key = null;
chatchannel = 0;
}
public string key;
public int chatchannel;
}
public partial class ChatResInfo : 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 :
chattype = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2 :
chatchannel = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3 :
chater = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 4 :
chatername = ProtoBufUtils.ReadString(ref readPos);
break;
case 5 :
vipLv = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 6 :
receiver = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 7 :
receivername = ProtoBufUtils.ReadString(ref readPos);
break;
case 8 :
receiverVipLv = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 9 :
condition = ProtoBufUtils.ReadString(ref readPos);
break;
case 10 :
occ = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 11 :
chaterlevel = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 12 :
receiverLevel = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 13 :
chatBgId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 14 :
chaterSid = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 15 :
systemId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 16 :
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.WriteInt32(1,chattype);
ProtoBufUtils.WriteInt32(2,chatchannel);
ProtoBufUtils.WriteUint64(3,chater);
ProtoBufUtils.WriteString(4,chatername);
ProtoBufUtils.WriteInt32(5,vipLv);
ProtoBufUtils.WriteUint64(6,receiver);
ProtoBufUtils.WriteString(7,receivername);
ProtoBufUtils.WriteInt32(8,receiverVipLv);
ProtoBufUtils.WriteString(9,condition);
ProtoBufUtils.WriteInt32(10,occ);
ProtoBufUtils.WriteInt32(11,chaterlevel);
ProtoBufUtils.WriteInt32(12,receiverLevel);
ProtoBufUtils.WriteInt32(13,chatBgId);
ProtoBufUtils.WriteInt32(14,chaterSid);
ProtoBufUtils.WriteInt32(15,systemId);
if(head != null)
{
head.WriteMessage(16);
}
ProtoBufUtils.SetVEndIndex(subItemInfoId);
return ProtoBufUtils.CheckAndSetLength(subItemInfoId);
}
public void Clear()
{
chattype = 0;
chatchannel = 0;
chater = 0;
chatername = null;
vipLv = 0;
receiver = 0;
receivername = null;
receiverVipLv = 0;
condition = null;
occ = 0;
chaterlevel = 0;
receiverLevel = 0;
chatBgId = 0;
chaterSid = 0;
systemId = 0;
if(head != null)
{
head.Clear();
}
}
public int chattype;
public int chatchannel;
public ulong chater;
public string chatername;
public int vipLv;
public ulong receiver;
public string receivername;
public int receiverVipLv;
public string condition;
public int occ;
public int chaterlevel;
public int receiverLevel;
public int chatBgId;
public int chaterSid;
public int systemId;
public MSG_Common.HeadAttribute head;
}
public partial class ChatResSC : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ChatResSC(this);
}
public const uint MsgID = 104102;
public void Send(){}
public void ReadMessage(byte[] bytes)
{
lock (ProtoBufUtils.ReadLocker)
{
Clear();
int endIndex = bytes.Length - 1;
int readPos = 0;
int totalCount = 0;
ProtoBufUtils.InitReadData(bytes, ref readPos);
while (readPos <= endIndex)
{
int curType = bytes[readPos] & 7;
int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos);
switch (fieldNumber)
{
case 1:
if(info == null)
{
info = new ChatResInfo();
}
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
info.ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(info != null)
{
info.Clear();
}
}
public ChatResInfo info;
}
public partial class ChatResLeaveMessageSC : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ChatResLeaveMessageSC(this);
}
public const uint MsgID = 104103;
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(msgList == null)
{
msgList = new List<LeaveMessage>();
}
msgList.Add(new LeaveMessage());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
msgList[msgList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(msgList != null)
{
msgList.Clear();
}
}
public List<LeaveMessage> msgList = new List<LeaveMessage>();
}
public partial class ChatGetContentSC : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ChatGetContentSC(this);
}
public const uint MsgID = 104104;
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:
voice = ProtoBufUtils.ReadString(ref readPos);
break;
case 2:
voiceKey = ProtoBufUtils.ReadString(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
voice = null;
voiceKey = null;
}
public string voice;
public string voiceKey;
}
public partial class PersonalNotice : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_PersonalNotice(this);
}
public const uint MsgID = 104101;
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:
content = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
if(value == null)
{
value = new List<paramStruct>();
}
value.Add(new paramStruct());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
value[value.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 4:
if(chatChannelList == null)
{
chatChannelList = new List<int>();
}
chatChannelList.Add(ProtoBufUtils.ReadInt32(ref readPos));
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
content = 0;
if(value != null)
{
value.Clear();
}
if(chatChannelList != null)
{
chatChannelList.Clear();
}
}
public int type;
public int content;
public List<paramStruct> value = new List<paramStruct>();
public List<int> chatChannelList = new List<int>();
}
public partial class ReqAddChatRooM : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 104205;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,type);
ProtoBufUtils.WriteInt64(2,typeId);
ProtoBufUtils.WriteString(3,roomId);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
type = 0;
typeId = 0;
roomId = null;
}
public int type;
public long typeId;
public string roomId;
}
public partial class ResAddChatRooM : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResAddChatRooM(this);
}
public const uint MsgID = 104105;
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:
state = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
state = 0;
}
public int type;
public int state;
}
public partial class ReqChatRoom : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 104206;
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 ResChatRoom : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResChatRoom(this);
}
public const uint MsgID = 104106;
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:
typeId = ProtoBufUtils.ReadInt64(ref readPos);
break;
case 3:
roomId = ProtoBufUtils.ReadString(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
typeId = 0;
roomId = null;
}
public int type;
public long typeId;
public string roomId;
}
public partial class ReqExitChatRoom : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 104207;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,type);
ProtoBufUtils.WriteString(2,roomId);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
type = 0;
roomId = null;
}
public int type;
public string roomId;
}
public partial class ResExitChatRoom : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResExitChatRoom(this);
}
public const uint MsgID = 104107;
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:
state = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
state = 0;
}
public int type;
public int state;
}
public partial class PersonalChatNotice : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_PersonalChatNotice(this);
}
public const uint MsgID = 104108;
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:
channel = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
content = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
if(value == null)
{
value = new List<paramStruct>();
}
value.Add(new paramStruct());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
value[value.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 4:
chater = ProtoBufUtils.ReadUint64(ref readPos);
break;
case 5:
chatername = ProtoBufUtils.ReadString(ref readPos);
break;
case 6:
vipLv = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 7:
chaterlevel = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 8:
moonandOver = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 9:
occ = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 10:
chatBgId = ProtoBufUtils.ReadInt32(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 void Clear()
{
channel = 0;
content = 0;
if(value != null)
{
value.Clear();
}
chater = 0;
chatername = null;
vipLv = 0;
chaterlevel = 0;
moonandOver = 0;
occ = 0;
chatBgId = 0;
if(head != null)
{
head.Clear();
}
}
public int channel;
public int content;
public List<paramStruct> value = new List<paramStruct>();
public ulong chater;
public string chatername;
public int vipLv;
public int chaterlevel;
public int moonandOver;
public int occ;
public int chatBgId;
public MSG_Common.HeadAttribute head;
}
public partial class ResShareNotice : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResShareNotice(this);
}
public const uint MsgID = 104110;
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:
shareId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
if(items == null)
{
items = new List<MSG_backpack.ItemInfo>();
}
items.Add(new MSG_backpack.ItemInfo());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
items[items.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 3:
if(paramStr == null)
{
paramStr = new List<string>();
}
paramStr.Add(ProtoBufUtils.ReadString(ref readPos));
break;
default:
break;
}
}
}
}
public void Clear()
{
shareId = 0;
if(items != null)
{
items.Clear();
}
if(paramStr != null)
{
paramStr.Clear();
}
}
public int shareId;
public List<MSG_backpack.ItemInfo> items = new List<MSG_backpack.ItemInfo>();
public List<string> paramStr = new List<string>();
}
public partial class ReqGetShareReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 104211;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,shareId);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
shareId = 0;
}
public int shareId;
}
public partial class ResGetShareRewardResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResGetShareRewardResult(this);
}
public const uint MsgID = 104111;
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:
shareId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
result = ProtoBufUtils.ReadInt32(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
shareId = 0;
result = 0;
}
public int shareId;
public int result;
}
public partial class ReqRefuseShare : ProtoBuf.IExtensible, ProtoBuf.IReqMessage
{
public const uint MsgID = 104212;
public void Excute(){}
public void Send()
{
lock (ProtoBufUtils.WriteLocker)
{
byte[] bytes = null;
ProtoBufUtils.InitWriteData();
ProtoBufUtils.WriteInt32(1,shareId);
bytes = ProtoBufUtils.GetData();
Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID);
}
}
public void Clear()
{
shareId = 0;
}
public int shareId;
}
public partial class ResWorldHistoryChatInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResWorldHistoryChatInfo(this);
}
public const uint MsgID = 104112;
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(msgList == null)
{
msgList = new List<LeaveMessage>();
}
msgList.Add(new LeaveMessage());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
msgList[msgList.Count - 1].ReadMessage(ref readPos, totalCount);
break;
default:
break;
}
}
}
}
public void Clear()
{
if(msgList != null)
{
msgList.Clear();
}
}
public List<LeaveMessage> msgList = new List<LeaveMessage>();
}
public partial class ResForbidWord : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_ResForbidWord(this);
}
public const uint MsgID = 104113;
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(wordList == null)
{
wordList = new List<string>();
}
wordList.Add(ProtoBufUtils.ReadString(ref readPos));
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
if(wordList != null)
{
wordList.Clear();
}
}
public int type;
public List<string> wordList = new List<string>();
}
public partial class F2GameServerNotice : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_F2GameServerNotice(this);
}
public const uint MsgID = 104314;
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:
content = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
if(value == null)
{
value = new List<paramStruct>();
}
value.Add(new paramStruct());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
value[value.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 4:
if(chatChannelList == null)
{
chatChannelList = new List<int>();
}
chatChannelList.Add(ProtoBufUtils.ReadInt32(ref readPos));
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
content = 0;
if(value != null)
{
value.Clear();
}
if(chatChannelList != null)
{
chatChannelList.Clear();
}
}
public int type;
public int content;
public List<paramStruct> value = new List<paramStruct>();
public List<int> chatChannelList = new List<int>();
}
public partial class P2GameServerNotice : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_P2GameServerNotice(this);
}
public const uint MsgID = 104414;
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:
content = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
if(value == null)
{
value = new List<paramStruct>();
}
value.Add(new paramStruct());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
value[value.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 4:
if(chatChannelList == null)
{
chatChannelList = new List<int>();
}
chatChannelList.Add(ProtoBufUtils.ReadInt32(ref readPos));
break;
default:
break;
}
}
}
}
public void Clear()
{
type = 0;
content = 0;
if(value != null)
{
value.Clear();
}
if(chatChannelList != null)
{
chatChannelList.Clear();
}
}
public int type;
public int content;
public List<paramStruct> value = new List<paramStruct>();
public List<int> chatChannelList = new List<int>();
}
public partial class F2PServerNotice : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_F2PServerNotice(this);
}
public const uint MsgID = 104415;
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 5:
plat = ProtoBufUtils.ReadString(ref readPos);
break;
case 4:
serverId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 1:
type = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 2:
content = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
if(value == null)
{
value = new List<paramStruct>();
}
value.Add(new paramStruct());
totalCount = ProtoBufUtils.ReadInt32(ref readPos);
value[value.Count - 1].ReadMessage(ref readPos, totalCount);
break;
case 6:
if(chatChannelList == null)
{
chatChannelList = new List<int>();
}
chatChannelList.Add(ProtoBufUtils.ReadInt32(ref readPos));
break;
default:
break;
}
}
}
}
public void Clear()
{
plat = null;
serverId = 0;
type = 0;
content = 0;
if(value != null)
{
value.Clear();
}
if(chatChannelList != null)
{
chatChannelList.Clear();
}
}
public string plat;
public int serverId;
public int type;
public int content;
public List<paramStruct> value = new List<paramStruct>();
public List<int> chatChannelList = new List<int>();
}
}