continuity/Wonderking/Packets/Outgoing/CharacterDeleteResponsePacket.cs

24 lines
587 B
C#
Raw Normal View History

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-25 13:23:16 +00:00
using NotSupportedException = System.NotSupportedException;
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)
{
2023-11-25 13:23:16 +00:00
throw new NotSupportedException();
2023-11-16 16:55:36 +00:00
}
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();
}
}