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

15 lines
395 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 = new byte[Constants.PacketDataSize];
2022-02-10 01:44:50 +00:00
2022-02-08 16:22:09 +00:00
public void Serialize(Span<byte> data) {
Data.CopyTo(data);
}
public void Deserialize(Span<byte> data) {
data.CopyTo(Data);
}
}