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

23 lines
665 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
{
public uint player_id { get; set; }
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;
context.SendPacket(new CharacterRenamePacket());
}
}
}