ThePhrozenKeep/D2MOO

Have a clean way to declare and reference packet tables

Open

#100 aberto em 23 de jan. de 2023

Ver no GitHub
 (0 comments) (0 reactions) (0 assignees)C++ (48 forks)auto 404
enhancementgood first issue

Métricas do repositório

Stars
 (159 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

In D2Net Client.cpp, the size of the packet sizes table (std::size(gServerPacketSizeTable)) is hardcoded (0xB4).

We should probably have a constant for this, or put the table in its own header since it should only be included in D2Net's Client.cpp and Server.cpp.

Originally posted by @Lectem in https://github.com/ThePhrozenKeep/D2MOO/pull/96#discussion_r1083280497

Guia do colaborador