continuity/Wonderking/Packets/Outgoing/CharacterDeleteResponsePacket.cs

20 lines
446 B
C#
Raw Normal View History

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();
}
}