17 lines
470 B
C#
17 lines
470 B
C#
// Licensed to Timothy Schenk under the GNU AGPL Version 3 License.
|
|
|
|
using System.Text;
|
|
using RaiNote.PacketMediator;
|
|
|
|
namespace Wonderking.Packets.Incoming;
|
|
|
|
[WonderkingPacketId(OperationCode.CharacterNameCheck)]
|
|
public class CharacterNameCheckPacket : IIncomingPacket
|
|
{
|
|
public required string Name { get; set; }
|
|
|
|
public void Deserialize(byte[] data)
|
|
{
|
|
Name = Encoding.ASCII.GetString(data, 0, 20).TrimEnd('\0').TrimEnd('\n').TrimEnd('\0');
|
|
}
|
|
}
|