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
|
|
|
|
2023-11-16 16:55:36 +00:00
|
|
|
namespace Wonderking.Packets.Outgoing;
|
|
|
|
|
|
|
|
[PacketId(OperationCode.CharacterDeletionResponse)]
|
|
|
|
public class CharacterDeleteResponsePacket : IPacket
|
|
|
|
{
|
2023-11-16 22:51:30 +00:00
|
|
|
public required byte IsDeleted { get; set; }
|
2023-11-16 16:55:36 +00:00
|
|
|
|
|
|
|
public void Deserialize(byte[] data)
|
|
|
|
{
|
|
|
|
throw new NotImplementedException();
|
|
|
|
}
|
|
|
|
|
|
|
|
public byte[] Serialize()
|
|
|
|
{
|
|
|
|
Span<byte> data = stackalloc byte[1];
|
2023-11-16 22:51:30 +00:00
|
|
|
data[0] = IsDeleted;
|
2023-11-16 16:55:36 +00:00
|
|
|
return data.ToArray();
|
|
|
|
}
|
|
|
|
}
|