using System.Runtime.InteropServices; namespace Shared.Packet.Packets; [Packet(PacketType.Shine)] public struct ShinePacket : IPacket { public int ShineId; public void Serialize(Span data) { MemoryMarshal.Write(data, ref ShineId); } public void Deserialize(Span data) { ShineId = MemoryMarshal.Read(data); } }