0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-15 16:15:06 +00:00
SmoOnlineServer/Shared/Packet/Packets/UnhandledPacket.cs
2022-02-09 19:44:50 -06:00

15 lines
No EOL
395 B
C#

namespace Shared.Packet.Packets;
[Packet(PacketType.Unknown)] // empty like boss
// [Packet(PacketType.Command)]
public struct UnhandledPacket : IPacket {
public byte[] Data = new byte[Constants.PacketDataSize];
public void Serialize(Span<byte> data) {
Data.CopyTo(data);
}
public void Deserialize(Span<byte> data) {
data.CopyTo(Data);
}
}