continuity/Wonderking/Packets/Incoming/CharacterNameCheckPacket.cs
Timothy Schenk 3a24dabdf2
chore: formatting and slnx
Signed-off-by: Timothy Schenk <admin@rainote.dev>
2025-01-16 14:30:40 +01:00

15 lines
466 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');
}
}