mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-22 03:05:16 +00:00
Change game packet size
This commit is contained in:
parent
88f61f9e79
commit
24e4333fde
1 changed files with 2 additions and 2 deletions
|
@ -5,14 +5,14 @@ namespace Shared.Packet.Packets;
|
|||
|
||||
[Packet(PacketType.Game)]
|
||||
public struct GamePacket : IPacket {
|
||||
private const int StageSize = 0x38;
|
||||
private const int StageSize = 0x40;
|
||||
public bool Is2d = false;
|
||||
public byte ScenarioNum = 0;
|
||||
public string Stage = "";
|
||||
|
||||
public GamePacket() { }
|
||||
|
||||
public short Size => 0x3A;
|
||||
public short Size => 0x42;
|
||||
public void Serialize(Span<byte> data) {
|
||||
MemoryMarshal.Write(data, ref Is2d);
|
||||
MemoryMarshal.Write(data[1..], ref ScenarioNum);
|
||||
|
|
Loading…
Reference in a new issue