mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-29 06:33:06 +00:00
534a6c9655
speedrun flag
21 lines
No EOL
465 B
C#
21 lines
No EOL
465 B
C#
namespace Shared.Packet.Packets;
|
|
|
|
[Packet(PacketType.Unknown)] // empty like boss
|
|
// [Packet(PacketType.Command)]
|
|
public struct UnhandledPacket : IPacket {
|
|
public byte[] Data;
|
|
|
|
public UnhandledPacket() {
|
|
Data = null!;
|
|
}
|
|
public short Size => 0;
|
|
|
|
public void Serialize(Span<byte> data) {
|
|
Data.CopyTo(data);
|
|
}
|
|
|
|
public void Deserialize(ReadOnlySpan<byte> data) {
|
|
Data = data.ToArray();
|
|
}
|
|
|
|
} |