continuity/Wonderking/Packets/Outgoing/CharacterDeleteResponsePacket.cs

24 lines
635 B
C#

// Copyright (c) 2023 Timothy Schenk. Subject to the GNU AGPL Version 3 License.
using Rai.PacketMediator;
using NotSupportedException = System.NotSupportedException;
namespace Wonderking.Packets.Outgoing;
[WonderkingPacketId(OperationCode.CharacterDeletionResponse)]
public class CharacterDeleteResponsePacket : IOutgoingPacket
{
public required byte HasToBeZero { get; set; }
public void Deserialize(byte[] data)
{
throw new NotSupportedException();
}
public byte[] Serialize()
{
Span<byte> data = stackalloc byte[1];
data[0] = HasToBeZero;
return data.ToArray();
}
}