using System.Collections.Generic; using Thousandto.Plugins.Common; using Thousandto.Code.Logic.Network; namespace MSG_Dailyactive { public partial class dailyActiveInfo : 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 : activeId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : open = ProtoBufUtils.ReadBoolean(ref readPos); break; case 3 : conditionOpen = ProtoBufUtils.ReadBoolean(ref readPos); break; case 4 : remainCount = ProtoBufUtils.ReadInt32(ref readPos); break; case 5 : canBuyCount = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } public int WriteMessage(int fieldNumber) { ProtoBufUtils.WriteHeader(fieldNumber, ProtoBuf.WireType.String); int subItemInfoId = ProtoBufUtils.GetSubItemInfoId(); ProtoBufUtils.SetEmptyLength(subItemInfoId); ProtoBufUtils.SetVBeginIndex(subItemInfoId); ProtoBufUtils.WriteInt32(1,activeId); ProtoBufUtils.WriteBoolean(2,open); ProtoBufUtils.WriteBoolean(3,conditionOpen); ProtoBufUtils.WriteInt32(4,remainCount); ProtoBufUtils.WriteInt32(5,canBuyCount); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { activeId = 0; open = false; conditionOpen = false; remainCount = 0; canBuyCount = 0; } public int activeId; public bool open; public bool conditionOpen; public int remainCount; public int canBuyCount; } public partial class ReqDailyActivePanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 152201; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { } } public partial class ResDailyActivePenel : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResDailyActivePenel(this); } public const uint MsgID = 152101; 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: value = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: activeMax = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: useItemCount = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: activeAdded = ProtoBufUtils.ReadInt32(ref readPos); break; case 5: if(drawList == null) { drawList = new List(); } drawList.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; case 6: if(dailyInfoList == null) { dailyInfoList = new List(); } dailyInfoList.Add(new dailyActiveInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); dailyInfoList[dailyInfoList.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { value = 0; activeMax = 0; useItemCount = 0; activeAdded = 0; if(drawList != null) { drawList.Clear(); } if(dailyInfoList != null) { dailyInfoList.Clear(); } } public int value; public int activeMax; public int useItemCount; public int activeAdded; public List drawList = new List(); public List dailyInfoList = new List(); } public partial class ReqGetActiveReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 152202; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,id); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { id = 0; } public int id; } public partial class ResGetActiveReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResGetActiveReward(this); } public const uint MsgID = 152102; 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: result = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: if(drawIdList == null) { drawIdList = new List(); } drawIdList.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; default: break; } } } } public void Clear() { result = 0; if(drawIdList != null) { drawIdList.Clear(); } } public int result; public List drawIdList = new List(); } public partial class ReqDailyPushIds : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 152203; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); for (int i = 0; i < activeIdList.Count; i++) { ProtoBufUtils.WriteInt32(1,activeIdList[i]); } bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { if(activeIdList != null) { activeIdList.Clear(); } } public List activeIdList = new List(); } public partial class ResDailyPushResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResDailyPushResult(this); } public const uint MsgID = 152103; 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(activeIdList == null) { activeIdList = new List(); } activeIdList.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; default: break; } } } } public void Clear() { if(activeIdList != null) { activeIdList.Clear(); } } public List activeIdList = new List(); } public partial class ReqJoinDaily : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 152204; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,dailyId); ProtoBufUtils.WriteInt32(2,param); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { dailyId = 0; param = 0; } public int dailyId; public int param; } public partial class ResDailyActiveOpen : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResDailyActiveOpen(this); } public const uint MsgID = 152104; 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: dailyId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: open = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { dailyId = 0; open = false; } public int dailyId; public bool open; } public partial class ReqCrossServerMatch : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 152205; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { } } public partial class G2PReqCrossServerMatch : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_G2PReqCrossServerMatch(this); } public const uint MsgID = 152301; 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 ServerMatchInfo : 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 : serverid = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : serverWroldLv = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : openTime = ProtoBufUtils.ReadInt64(ref readPos); break; case 4 : rankName_1 = ProtoBufUtils.ReadString(ref readPos); break; case 5 : rankName_2 = ProtoBufUtils.ReadString(ref readPos); break; case 6 : rankName_3 = 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,serverid); ProtoBufUtils.WriteInt32(2,serverWroldLv); ProtoBufUtils.WriteInt64(3,openTime); ProtoBufUtils.WriteString(4,rankName_1); ProtoBufUtils.WriteString(5,rankName_2); ProtoBufUtils.WriteString(6,rankName_3); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { serverid = 0; serverWroldLv = 0; openTime = 0; rankName_1 = null; rankName_2 = null; rankName_3 = null; } public int serverid; public int serverWroldLv; public long openTime; public string rankName_1; public string rankName_2; public string rankName_3; } public partial class ResCrossServerMatch : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResCrossServerMatch(this); } public const uint MsgID = 152105; 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(serverMatch_2 == null) { serverMatch_2 = new List(); } serverMatch_2.Add(new ServerMatchInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); serverMatch_2[serverMatch_2.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: if(serverMatch_4 == null) { serverMatch_4 = new List(); } serverMatch_4.Add(new ServerMatchInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); serverMatch_4[serverMatch_4.Count - 1].ReadMessage(ref readPos, totalCount); break; case 3: if(serverMatch_8 == null) { serverMatch_8 = new List(); } serverMatch_8.Add(new ServerMatchInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); serverMatch_8[serverMatch_8.Count - 1].ReadMessage(ref readPos, totalCount); break; case 4: if(serverMatch_16 == null) { serverMatch_16 = new List(); } serverMatch_16.Add(new ServerMatchInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); serverMatch_16[serverMatch_16.Count - 1].ReadMessage(ref readPos, totalCount); break; case 5: if(serverMatch_32 == null) { serverMatch_32 = new List(); } serverMatch_32.Add(new ServerMatchInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); serverMatch_32[serverMatch_32.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(serverMatch_2 != null) { serverMatch_2.Clear(); } if(serverMatch_4 != null) { serverMatch_4.Clear(); } if(serverMatch_8 != null) { serverMatch_8.Clear(); } if(serverMatch_16 != null) { serverMatch_16.Clear(); } if(serverMatch_32 != null) { serverMatch_32.Clear(); } } public List serverMatch_2 = new List(); public List serverMatch_4 = new List(); public List serverMatch_8 = new List(); public List serverMatch_16 = new List(); public List serverMatch_32 = new List(); } public partial class P2FSendDailyState : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_P2FSendDailyState(this); } public const uint MsgID = 152401; 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: dailyID = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: isOpen = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { dailyID = 0; isOpen = false; } public int dailyID; public bool isOpen; } public partial class ReqLeaderPreachEnter : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 152206; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { } } public partial class SyncLeaderPowerStage : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_SyncLeaderPowerStage(this); } public const uint MsgID = 152108; public void Send(){} public void ReadMessage(byte[] bytes) { lock (ProtoBufUtils.ReadLocker) { Clear(); int endIndex = bytes.Length - 1; int readPos = 0; int totalCount = 0; ProtoBufUtils.InitReadData(bytes, ref readPos); while (readPos <= endIndex) { int curType = bytes[readPos] & 7; int fieldNumber = ProtoBufUtils.ReadFieldNumber(ref readPos); switch (fieldNumber) { default: break; } } } } public void Clear() { } } public partial class ResLeaderReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResLeaderReward(this); } public const uint MsgID = 152109; 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: addExp = ProtoBufUtils.ReadInt64(ref readPos); break; case 2: changeLevel = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: decActivePoint = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { addExp = 0; changeLevel = 0; decActivePoint = 0; } public long addExp; public int changeLevel; public int decActivePoint; } public partial class ReqLeaveLeaderPreach : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 152207; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { } } public partial class ResUpdateDailyActiveInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResUpdateDailyActiveInfo(this); } public const uint MsgID = 152106; 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: value = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: activeMax = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: useItemCount = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: activeAdded = ProtoBufUtils.ReadInt32(ref readPos); break; case 5: if(info == null) { info = new dailyActiveInfo(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); info.ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { value = 0; activeMax = 0; useItemCount = 0; activeAdded = 0; if(info != null) { info.Clear(); } } public int value; public int activeMax; public int useItemCount; public int activeAdded; public dailyActiveInfo info; } }