using System.Text;

namespace Wonderking.Packets.Incoming;

[PacketId(OperationCode.CharacterNameCheck)]
public class CharacterNameCheckPacket : IPacket
{
    public required string Name { get; set; }

    public void Deserialize(byte[] data)
    {
        Encoding.ASCII.GetString(data, 0, 20);
    }

    public byte[] Serialize()
    {
        throw new NotSupportedException();
    }
}