continuity/Wonderking/Packets/Outgoing/CharacterDeleteResponsePacket.cs

19 lines
478 B
C#
Raw Normal View History

2023-11-21 21:37:50 +01:00
// Copyright (c) 2023 Timothy Schenk. Subject to the GNU AGPL Version 3 License.
2023-11-20 19:58:30 +01:00
using Rai.PacketMediator;
2023-11-25 14:23:16 +01:00
2023-11-16 17:55:36 +01:00
namespace Wonderking.Packets.Outgoing;
[WonderkingPacketId(OperationCode.CharacterDeletionResponse)]
public class CharacterDeleteResponsePacket : IOutgoingPacket
2023-11-16 17:55:36 +01:00
{
2023-11-25 17:57:15 +01:00
public required byte HasToBeZero { get; set; }
2023-11-16 17:55:36 +01:00
public byte[] Serialize()
{
Span<byte> data = stackalloc byte[1];
2023-11-25 17:57:15 +01:00
data[0] = HasToBeZero;
2023-11-16 17:55:36 +01:00
return data.ToArray();
}
}