using System.Collections.Generic; using Thousandto.Plugins.Common; using Thousandto.Code.Logic.Network; namespace MSG_Pray { public partial class ReqOpenPrayPanel : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 138201; 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 ResSyncPrayInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResSyncPrayInfo(this); } public const uint MsgID = 138101; 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: prayMoneyNum = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: prayExpNum = ProtoBufUtils.ReadInt32(ref readPos); break; case 3: freePrayMoneyTime = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { prayMoneyNum = 0; prayExpNum = 0; freePrayMoneyTime = 0; } public int prayMoneyNum; public int prayExpNum; public int freePrayMoneyTime; } public partial class ReqPray : ProtoBuf.IExtensible, ProtoBuf.IReqMessage { public const uint MsgID = 138202; public void Excute(){} public void Send() { lock (ProtoBufUtils.WriteLocker) { byte[] bytes = null; ProtoBufUtils.InitWriteData(); ProtoBufUtils.WriteInt32(1,prayType); ProtoBufUtils.WriteBoolean(2,free); bytes = ProtoBufUtils.GetData(); Thousandto.Plugins.Common.Networker.Instance.Send(bytes, MsgID); } } public void Clear() { prayType = 0; free = false; } public int prayType; public bool free; } public partial class ResPraySuccess : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResPraySuccess(this); } public const uint MsgID = 138102; 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: prayType = ProtoBufUtils.ReadInt32(ref readPos); break; case 2: isDouble = ProtoBufUtils.ReadBoolean(ref readPos); break; case 3: prayNum = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { prayType = 0; isDouble = false; prayNum = 0; } public int prayType; public bool isDouble; public int prayNum; } public partial class ResPrayFailed : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResPrayFailed(this); } public const uint MsgID = 138103; 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: reason = ProtoBufUtils.ReadInt32(ref readPos); break; default: break; } } } } public void Clear() { reason = 0; } public int reason; } public partial class ResPrayTick : ProtoBuf.IExtensible, ProtoBuf.IResMessage { public void Excute() { HandleMsgResult.getInstance().GS2U_ResPrayTick(this); } public const uint MsgID = 138104; 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() { } } }