mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-25 20:55:18 +00:00
16 lines
No EOL
369 B
C#
16 lines
No EOL
369 B
C#
using System.Runtime.InteropServices;
|
|
|
|
namespace Shared.Packet.Packets;
|
|
|
|
[Packet(PacketType.Shine)]
|
|
public struct ShinePacket : IPacket {
|
|
public int ShineId;
|
|
|
|
public void Serialize(Span<byte> data) {
|
|
MemoryMarshal.Write(data, ref ShineId);
|
|
}
|
|
|
|
public void Deserialize(Span<byte> data) {
|
|
ShineId = MemoryMarshal.Read<int>(data);
|
|
}
|
|
} |