Files
Main/Assets/Code/Logic/_NetMessage/Messages/BravePeakEx.cs
2025-01-25 04:38:09 +08:00

156 lines
5.0 KiB
C#

using System.Collections.Generic;
using Thousandto.Plugins.Common;
using Thousandto.Code.Logic.Network;
namespace MSG_BravePeak
{
public partial class F2GSendBravePeakReward : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_F2GSendBravePeakReward(this);
}
public const uint MsgID = 515401;
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:
floor = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
copyMapId = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 4:
needToNext = ProtoBufUtils.ReadBoolean(ref readPos);
break;
case 5:
isGetReward = ProtoBufUtils.ReadBoolean(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
roleId = 0;
floor = 0;
copyMapId = 0;
needToNext = false;
isGetReward = false;
}
public long roleId;
public int floor;
public int copyMapId;
public bool needToNext;
public bool isGetReward;
}
public partial class G2PGetPlayerBravePeakInfo : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_G2PGetPlayerBravePeakInfo(this);
}
public const uint MsgID = 515301;
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 P2GPlayerBravePeakInfoResult : ProtoBuf.IExtensible, ProtoBuf.IResMessage
{
public void Excute()
{
HandleMsgResult.getInstance().GS2U_P2GPlayerBravePeakInfoResult(this);
}
public const uint MsgID = 515402;
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:
floor = ProtoBufUtils.ReadInt32(ref readPos);
break;
case 3:
success = ProtoBufUtils.ReadBoolean(ref readPos);
break;
default:
break;
}
}
}
}
public void Clear()
{
roleId = 0;
floor = 0;
success = false;
}
public long roleId;
public int floor;
public bool success;
}
}