using System.Collections.Generic; using Thousandto.Plugins.Common; using Thousandto.Code.Logic.Network; namespace MSG_ManorWar { public partial class ManorBossInfo : 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 : bossId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2 : refreshTime = ProtoBufUtils.ReadInt32(ref readPos); break; case 3 : type = ProtoBufUtils.ReadInt32(ref readPos); break; case 4 : isFollowed = 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,bossId); ProtoBufUtils.WriteInt32(2,refreshTime); ProtoBufUtils.WriteInt32(3,type); ProtoBufUtils.WriteBoolean(4,isFollowed); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { bossId = 0; refreshTime = 0; type = 0; isFollowed = false; } public int bossId; public int refreshTime; public int type; public bool isFollowed; } public partial class ReqManorLocalBossPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 518201; 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 ResManorLocalBossPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResManorLocalBossPanel(this); } public const uint MsgID = 518101; 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(bossInfo == null) { bossInfo = new List(); } bossInfo.Add(new ManorBossInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); bossInfo[bossInfo.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: score = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: if(rewards == null) { rewards = new List(); } rewards.Add(ProtoBufUtils.ReadInt32(ref readPos)); break; default: break; } } } } public void Clear() { if(bossInfo != null) { bossInfo.Clear(); } score = 0; if(rewards != null) { rewards.Clear(); } } public List bossInfo = new List(); public int score; public List rewards = new List(); } public partial class ReqDayScoreReward : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 518202; 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 ResDayScoreReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResDayScoreReward(this); } public const uint MsgID = 518102; 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: id = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: success = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { id = 0; success = false; } public int id; public bool success; } public partial class ResUpdateMonsterResurgenceTime : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResUpdateMonsterResurgenceTime(this); } public const uint MsgID = 518103; 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(bossInfo == null) { bossInfo = new List(); } bossInfo.Add(new ManorBossInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); bossInfo[bossInfo.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(bossInfo != null) { bossInfo.Clear(); } } public List bossInfo = new List(); } public partial class ReqAttentionMonster : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 518204; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,monsterModelId); ProtoBufUtils.WriteInt32(2,type); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { monsterModelId = 0; type = 0; } public int monsterModelId; public int type; } public partial class ResAttentionMonster : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResAttentionMonster(this); } public const uint MsgID = 518104; 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: attention = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: type = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { attention = 0; type = 0; } public int attention; public int type; } public partial class ResAttentionMonsterRefresh : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResAttentionMonsterRefresh(this); } public const uint MsgID = 518105; 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: monsterModelId = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { monsterModelId = 0; } public int monsterModelId; } public partial class ResSynAnger : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResSynAnger(this); } public const uint MsgID = 518106; 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: anger = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { anger = 0; } public int anger; } public partial class ResSynScore : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResSynScore(this); } public const uint MsgID = 518107; 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: score = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { score = 0; } public int score; } public partial class ReqManorCrossBossPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 518205; 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 G2PReqManorWarCrossPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_G2PReqManorWarCrossPanel(this); } public const uint MsgID = 518301; 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: bossKilled = ProtoBufUtils.ReadBoolean(ref readPos); break; case 2: roleId = ProtoBufUtils.ReadInt64(ref readPos); break; case 3: hasReward = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { bossKilled = false; roleId = 0; hasReward = false; } public bool bossKilled; public long roleId; public bool hasReward; } public partial class ResManorWarCrossPanel : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResManorWarCrossPanel(this); } public const uint MsgID = 518108; 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(bossInfo == null) { bossInfo = new List(); } bossInfo.Add(new ManorBossInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); bossInfo[bossInfo.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: bossKilled = ProtoBufUtils.ReadBoolean(ref readPos); break; case 3: win = ProtoBufUtils.ReadBoolean(ref readPos); break; case 4: vipPlayerName = ProtoBufUtils.ReadString(ref readPos); break; case 5: killNum = ProtoBufUtils.ReadInt32(ref readPos); break; case 6: score = ProtoBufUtils.ReadInt32(ref readPos); break; case 7: hasReward = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { if(bossInfo != null) { bossInfo.Clear(); } bossKilled = false; win = false; vipPlayerName = null; killNum = 0; score = 0; hasReward = false; } public List bossInfo = new List(); public bool bossKilled; public bool win; public string vipPlayerName; public int killNum; public int score; public bool hasReward; } public partial class ResUpdateMonsterResurgenceTimeCross : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResUpdateMonsterResurgenceTimeCross(this); } public const uint MsgID = 518110; 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(bossInfo == null) { bossInfo = new List(); } bossInfo.Add(new ManorBossInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); bossInfo[bossInfo.Count - 1].ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(bossInfo != null) { bossInfo.Clear(); } } public List bossInfo = new List(); } public partial class F2PReqAddSocreRankCross : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_F2PReqAddSocreRankCross(this); } public const uint MsgID = 518303; 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: playerId = ProtoBufUtils.ReadInt64(ref readPos); break; case 2: name = ProtoBufUtils.ReadString(ref readPos); break; case 3: addKillNum = ProtoBufUtils.ReadInt32(ref readPos); break; case 4: if(addSocre == null) { addSocre = new ScoreInfo(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); addSocre.ReadMessage(ref readPos, totalCount); break; case 5: groupId = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { playerId = 0; name = null; addKillNum = 0; if(addSocre != null) { addSocre.Clear(); } groupId = 0; } public long playerId; public string name; public int addKillNum; public ScoreInfo addSocre; public int groupId; } public partial class G2PReqAddSocreRankCross : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_G2PReqAddSocreRankCross(this); } public const uint MsgID = 518305; 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(addSocre == null) { addSocre = new ScoreInfo(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); addSocre.ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { if(addSocre != null) { addSocre.Clear(); } } public ScoreInfo addSocre; } public partial class ScoreInfo : 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 : score = 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,serverid); ProtoBufUtils.WriteInt32(2,score); ProtoBufUtils.SetVEndIndex(subItemInfoId); return ProtoBufUtils.CheckAndSetLength(subItemInfoId); } public void Clear() { serverid = 0; score = 0; } public int serverid; public int score; } public partial class ResSocreRankCross : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResSocreRankCross(this); } public const uint MsgID = 518111; 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(scoreList == null) { scoreList = new List(); } scoreList.Add(new ScoreInfo()); totalCount = ProtoBufUtils.ReadInt32(ref readPos); scoreList[scoreList.Count - 1].ReadMessage(ref readPos, totalCount); break; case 2: rewardTime = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { if(scoreList != null) { scoreList.Clear(); } rewardTime = 0; } public List scoreList = new List(); public int rewardTime; } public partial class ReqSocreRankCross : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 518206; 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 G2PReqSocreRankCross : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_G2PReqSocreRankCross(this); } public const uint MsgID = 518307; 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: rewardTime = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { roleId = 0; rewardTime = 0; } public long roleId; public int rewardTime; } public partial class P2FTickAllPlayerOutMap : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_P2FTickAllPlayerOutMap(this); } public const uint MsgID = 518401; 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: mapid = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { mapid = 0; } public int mapid; } public partial class F2PBossChange : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_F2PBossChange(this); } public const uint MsgID = 518306; 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: groupId = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: bossid = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: die = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { groupId = 0; bossid = 0; die = false; } public int groupId; public int bossid; public bool die; } public partial class G2PReqBigBossDieAddBuf : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_G2PReqBigBossDieAddBuf(this); } public const uint MsgID = 518308; 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 P2GReqBigBossDieAddBuff : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_P2GReqBigBossDieAddBuff(this); } public const uint MsgID = 518402; 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 P2GReqUpdateRewardState : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_P2GReqUpdateRewardState(this); } public const uint MsgID = 518403; 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: isWin = ProtoBufUtils.ReadBoolean(ref readPos); break; case 2: round = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { isWin = false; round = 0; } public bool isWin; public int round; } public partial class P2GReqAddSocre : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_P2GReqAddSocre(this); } public const uint MsgID = 518404; 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: socre = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { socre = 0; } public int socre; } public partial class ReqRoundScoreRewardCross : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 518209; 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 ResRoundScoreRewardCross : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResRoundScoreRewardCross(this); } public const uint MsgID = 518109; 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: success = ProtoBufUtils.ReadBoolean(ref readPos); break; default: break; } } } } public void Clear() { success = false; } public bool success; } public partial class F2GSendAddScore : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_F2GSendAddScore(this); } public const uint MsgID = 518405; 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: if(addSocre == null) { addSocre = new ScoreInfo(); } totalCount = ProtoBufUtils.ReadInt32(ref readPos); addSocre.ReadMessage(ref readPos, totalCount); break; default: break; } } } } public void Clear() { roleId = 0; if(addSocre != null) { addSocre.Clear(); } } public long roleId; public ScoreInfo addSocre; } public partial class G2PEnterDaily : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_G2PEnterDaily(this); } public const uint MsgID = 518309; 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 F2GSendAnger : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_F2GSendAnger(this); } public const uint MsgID = 518406; 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: angerAdd = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: roleId = ProtoBufUtils.ReadInt64(ref readPos); break; default: break; } } } } public void Clear() { angerAdd = 0; roleId = 0; } public int angerAdd; public long roleId; } }