PSO2SERVER/Server/Protocol/Handlers/1F-ClientOrderHandler/1F-0F-UNK.cs

28 lines
798 B
C#
Raw Normal View History

2024-11-25 23:33:41 +08:00
using System;
using PSO2SERVER.Models;
using PSO2SERVER.Protocol.Packets;
2024-11-25 23:33:41 +08:00
namespace PSO2SERVER.Protocol.Handlers
2024-11-25 23:33:41 +08:00
{
2024-12-06 19:47:18 +08:00
[PacketHandlerAttr(0x1F, 0x0F)]
public class _1F_0F_UNK : PacketHandler
2024-11-25 23:33:41 +08:00
{
2024-12-06 19:47:18 +08:00
public struct Unk1F0FPacket
{
public uint unk1;
public uint unk2;
}
2024-11-25 23:33:41 +08:00
public override void HandlePacket(Client context, byte flags, byte[] data, uint position, uint size)
{
var info = string.Format("[<--] 接收到的数据 (hex): {0} 字节", data.Length);
Logger.WriteHex(info, data);
2024-12-06 19:47:18 +08:00
var reader = new PacketReader(data, position, size);
var packet = reader.ReadStruct<Unk1F0FPacket>();
Logger.Write($"unk1 = {packet.unk1}, unk2 = {packet.unk2}");
2024-11-25 23:33:41 +08:00
}
}
}