1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Refactor the network code also change protocol (#25575)

* Change the network protocol and refactor the code, still supports the old format for now

* Bump up network version

* Update changelog.txt
This commit is contained in:
Matt
2025-12-03 00:06:39 +02:00
committed by GitHub
parent 628b6af059
commit d8698726c9
16 changed files with 456 additions and 356 deletions

View File

@@ -18,7 +18,7 @@
namespace OpenRCT2::Network
{
Packet::Packet(Command id) noexcept
: Header{ 0, id }
: Header{ PacketHeader::kMagic, PacketHeader::kVersion, 0, id }
{
}
@@ -34,7 +34,7 @@ namespace OpenRCT2::Network
Command Packet::GetCommand() const noexcept
{
return Header.Id;
return Header.id;
}
void Packet::Clear() noexcept