- Untrack build-debug/ and build-asan/ (CMake trees committed by mistake in
c9389431) and ignore them.
- Remove extension/src/net and extension/src/pack (m2dev protocol and XChaCha
pack format, superseded by the ported 40250 code), their 18 unregistered tests
and the net/pack tools, the MT_BUILD_NET_TOOLS probe, and the libsodium and zstd
submodules they alone used.
- The fake login server's classic cipher, sequence table and wire layouts move to
extension/tests/classic/ (still used by port.login_flow, port.packet and the
native client's offline mode).
- Archive Godot/m2dev-era plans under docs/archive/; THIRD-PARTY.md updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
50 lines
1.9 KiB
C++
50 lines
1.9 KiB
C++
// The classic wire sizes for port_packet_test.cpp, in the same order as its kPortSizes.
|
|
#include "classic/wire_classic.h"
|
|
|
|
#include <cstddef>
|
|
|
|
struct WireSize { const char* name; std::size_t size; };
|
|
|
|
namespace w = mtnet::classic;
|
|
|
|
extern const WireSize kWireSizes[] = {
|
|
{"Handshake", sizeof(w::Handshake)},
|
|
{"Phase_", sizeof(w::Phase_)},
|
|
{"BindUDP", sizeof(w::BindUDP)},
|
|
{"KeyAgreement", sizeof(w::KeyAgreement)},
|
|
{"KeyAgreementCompleted", sizeof(w::KeyAgreementCompleted)},
|
|
{"Blank", sizeof(w::Blank)},
|
|
{"Blank", sizeof(w::Blank)},
|
|
{"CGLogin", sizeof(w::CGLogin)},
|
|
{"CGLogin2", sizeof(w::CGLogin2)},
|
|
{"CGLogin3", sizeof(w::CGLogin3)},
|
|
{"GCLoginKey", sizeof(w::GCLoginKey)},
|
|
{"GCAuthSuccess", sizeof(w::GCAuthSuccess)},
|
|
{"SimplePlayer", sizeof(w::SimplePlayer)},
|
|
{"GCLoginSuccess3", sizeof(w::GCLoginSuccess3)},
|
|
{"GCLoginSuccess", sizeof(w::GCLoginSuccess)},
|
|
{"GCLoginFailure", sizeof(w::GCLoginFailure)},
|
|
{"GCEmpire", sizeof(w::GCEmpire)},
|
|
{"CGEmpire", sizeof(w::CGEmpire)},
|
|
{"CGPlayerSelect", sizeof(w::CGPlayerSelect)},
|
|
{"CGPlayerCreate", sizeof(w::CGPlayerCreate)},
|
|
{"CGPlayerDelete", sizeof(w::CGPlayerDelete)},
|
|
{"CGChangeName", sizeof(w::CGChangeName)},
|
|
{"GCPlayerCreateSuccess", sizeof(w::GCPlayerCreateSuccess)},
|
|
{"GCPlayerCreateFailure", sizeof(w::GCPlayerCreateFailure)},
|
|
{"GCPlayerDeleteSuccess", sizeof(w::GCPlayerDeleteSuccess)},
|
|
{"GCChangeName", sizeof(w::GCChangeName)},
|
|
{"GCMainCharacterOld", sizeof(w::GCMainCharacterOld)},
|
|
{"GCMainCharacter", sizeof(w::GCMainCharacter)},
|
|
{"GCMainCharacter3BGM", sizeof(w::GCMainCharacter3BGM)},
|
|
{"GCMainCharacter4BGM", sizeof(w::GCMainCharacter4BGM)},
|
|
{"GCPoints", sizeof(w::GCPoints)},
|
|
{"GCPointChange", sizeof(w::GCPointChange)},
|
|
{"GCItemSet", sizeof(w::GCItemSet)},
|
|
{"GCQuickSlotAdd", sizeof(w::GCQuickSlotAdd)},
|
|
{"GCCharacterUpdate", sizeof(w::GCCharacterUpdate)},
|
|
{"CGClientVersion2", sizeof(w::CGClientVersion2)},
|
|
{"CGEnterGame", sizeof(w::CGEnterGame)},
|
|
{nullptr, 0},
|
|
};
|