continuity/Wonderking/Packets/Incoming/CharacterNameCheckPacket.cs

20 lines
390 B
C#
Raw Normal View History

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();
}
}