continuity/Wonderking/Packets/Incoming/CharacterNameCheckPacket.cs

16 lines
466 B
C#
Raw Normal View History

2024-02-07 15:40:36 +00:00
// Licensed to Timothy Schenk under the GNU AGPL Version 3 License.
2023-11-20 18:58:30 +00:00
using System.Text;
2024-04-04 14:57:42 +00:00
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');
}
}