0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-18 01:15:09 +00:00
SmoOnlineServer/Shared/Packet/Packets/UnhandledPacket.cs

21 lines
465 B
C#
Raw Normal View History

2022-02-10 01:44:50 +00:00
namespace Shared.Packet.Packets;
2022-02-08 16:22:09 +00:00
[Packet(PacketType.Unknown)] // empty like boss
2022-02-08 22:46:12 +00:00
// [Packet(PacketType.Command)]
2022-02-08 16:22:09 +00:00
public struct UnhandledPacket : IPacket {
public byte[] Data;
2022-02-10 01:44:50 +00:00
public UnhandledPacket() {
Data = null!;
}
public short Size => 0;
2022-02-08 16:22:09 +00:00
public void Serialize(Span<byte> data) {
Data.CopyTo(data);
}
public void Deserialize(ReadOnlySpan<byte> data) {
Data = data.ToArray();
2022-02-08 16:22:09 +00:00
}
2022-02-08 16:22:09 +00:00
}