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

16 lines
481 B
C#

// Licensed to Timothy Schenk under the GNU AGPL Version 3 License.
using RaiNote.PacketMediator;
namespace Wonderking.Packets.Outgoing;
[WonderkingPacketId(OperationCode.CharacterNameCheckResponse)]
public class CharacterNameCheckPacketResponse : IOutgoingPacket {
public required bool IsTaken { get; set; }
public byte[] Serialize() {
Span<byte> data = stackalloc byte[1];
data[0] = IsTaken ? (byte)1 : (byte)0;
return data.ToArray();
}
}