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 {
|
2022-03-11 05:59:02 +00:00
|
|
|
|
public byte[] Data;
|
2022-02-10 01:44:50 +00:00
|
|
|
|
|
2022-03-11 05:59:02 +00:00
|
|
|
|
public UnhandledPacket() {
|
|
|
|
|
Data = null!;
|
|
|
|
|
}
|
|
|
|
|
public short Size => 0;
|
2022-02-22 03:39:12 +00:00
|
|
|
|
|
2022-02-08 16:22:09 +00:00
|
|
|
|
public void Serialize(Span<byte> data) {
|
|
|
|
|
Data.CopyTo(data);
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-04 04:29:34 +00:00
|
|
|
|
public void Deserialize(ReadOnlySpan<byte> data) {
|
2022-03-11 05:59:02 +00:00
|
|
|
|
Data = data.ToArray();
|
2022-02-08 16:22:09 +00:00
|
|
|
|
}
|
2022-03-11 05:59:02 +00:00
|
|
|
|
|
2022-02-08 16:22:09 +00:00
|
|
|
|
}
|