continuity/Wonderking/Packets/Outgoing/CharacterNameCheckPacketResponse.cs

17 lines
481 B
C#
Raw Normal View History

2024-02-07 16:40:36 +01:00
// Licensed to Timothy Schenk under the GNU AGPL Version 3 License.
2023-11-20 19:58:30 +01:00
2024-04-04 16:57:42 +02:00
using RaiNote.PacketMediator;
namespace Wonderking.Packets.Outgoing;
[WonderkingPacketId(OperationCode.CharacterNameCheckResponse)]
public class CharacterNameCheckPacketResponse : IOutgoingPacket {
public required bool IsTaken { get; set; }
2024-02-07 16:40:36 +01:00
public byte[] Serialize() {
Span<byte> data = stackalloc byte[1];
2023-11-19 17:07:28 +01:00
data[0] = IsTaken ? (byte)1 : (byte)0;
return data.ToArray();
}
}