continuity/Wonderking/Packets/Outgoing/CharacterDeleteResponsePacket.cs

19 lines
469 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
2024-04-04 14:57:42 +00:00
using RaiNote.PacketMediator;
2023-11-25 13:23:16 +00:00
2023-11-16 16:55:36 +00:00
namespace Wonderking.Packets.Outgoing;
[WonderkingPacketId(OperationCode.CharacterDeletionResponse)]
public class CharacterDeleteResponsePacket : IOutgoingPacket
2023-11-16 16:55:36 +00:00
{
2023-11-25 16:57:15 +00:00
public required byte HasToBeZero { get; set; }
2023-11-16 16:55:36 +00:00
public byte[] Serialize()
{
Span<byte> data = stackalloc byte[1];
2023-11-25 16:57:15 +00:00
data[0] = HasToBeZero;
2023-11-16 16:55:36 +00:00
return data.ToArray();
}
}