PSO2SERVER/Server/Protocol/Handlers/11-ClientHandler/11-B0-Unk11B0.cs

32 lines
991 B
C#
Raw Normal View History

2024-09-22 00:08:44 +08:00
using System;
using PSO2SERVER.Models;
using PSO2SERVER.Protocol.Packets;
using static PSO2SERVER.Protocol.Handlers.CharacterNewNameRequest;
2024-09-22 00:08:44 +08:00
namespace PSO2SERVER.Protocol.Handlers
2024-09-22 00:08:44 +08:00
{
[PacketHandlerAttr(0x11, 0xB0)]
2024-12-03 13:18:58 +08:00
public class Unk11B0 : PacketHandler
2024-09-22 00:08:44 +08:00
{
2024-11-25 10:22:08 +08:00
public struct Unk11B0Packet
{
2024-11-25 23:33:41 +08:00
public uint unk1 { get; set; }
public uint unk2 { get; set; }
2024-11-25 10:22:08 +08:00
}
2024-09-22 00:08:44 +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-11-25 12:35:52 +08:00
// 创建一个结构体实例
var packet = new Unk11B0Packet();
// 读取数据并填充到结构体中
var reader = new PacketReader(data, position, size);
packet.unk1 = reader.ReadUInt32();
2024-11-25 23:33:41 +08:00
packet.unk2 = reader.ReadUInt32();
2024-09-22 00:08:44 +08:00
}
}
}