feat: move type definitions for PacketVersion, LocalID, and SequenceNumber to improve code organization

This commit is contained in:
MayaTheShy
2025-11-08 17:49:30 -05:00
parent c8caf6ba33
commit ec904008b7

View File

@@ -53,6 +53,10 @@ enum class PacketType : uint8_t {
EntityData = 0x45,
};
using PacketVersion = uint8_t;
using LocalID = uint16_t;
using SequenceNumber = uint32_t;
// Packet version constants (from Overte source)
namespace PacketVersions {
constexpr PacketVersion DomainConnectRequest_SocketTypes = 27; // NoHostname(17) + 10
@@ -61,10 +65,6 @@ namespace PacketVersions {
constexpr PacketVersion Ping_IncludeConnectionID = 18;
}
using PacketVersion = uint8_t;
using LocalID = uint16_t;
using SequenceNumber = uint32_t;
// NLPacket structure (minimal implementation)
class NLPacket {
public: