2023-11-21 20:37:50 +00:00
|
|
|
// Copyright (c) 2023 Timothy Schenk. Subject to the GNU AGPL Version 3 License.
|
2023-11-20 18:58:30 +00:00
|
|
|
|
2024-02-04 18:52:45 +00:00
|
|
|
using Rai.PacketMediator;
|
2023-11-25 13:23:16 +00:00
|
|
|
|
2023-11-16 16:55:36 +00:00
|
|
|
namespace Wonderking.Packets.Outgoing;
|
|
|
|
|
2024-02-04 18:52:45 +00:00
|
|
|
[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();
|
|
|
|
}
|
|
|
|
}
|