PSO2SERVER/Server/Packets/Handlers/11-ClientHandler/11-97-CharacterRenameRequest.cs

26 lines
768 B
C#
Raw Normal View History

2024-11-24 23:40:50 +08:00
using System;
using PSO2SERVER.Models;
using PSO2SERVER.Packets.PSOPackets;
namespace PSO2SERVER.Packets.Handlers
{
[PacketHandlerAttr(0x11, 0x97)]
class CharacterRenameRequestPacket : PacketHandler
{
2024-11-25 23:33:41 +08:00
public uint CharacterID { get; set; }
2024-11-24 23:40:50 +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);
if (context._account == null)
return;
2024-11-25 23:33:41 +08:00
var reader = new PacketReader(data);
var CharacterID = reader.ReadUInt32();
2024-11-24 23:40:50 +08:00
context.SendPacket(new CharacterRenamePacket());
}
}
}