From ec904008b742d091f9fda28f17574f19f4a71223 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sat, 8 Nov 2025 17:49:30 -0500 Subject: [PATCH] feat: move type definitions for PacketVersion, LocalID, and SequenceNumber to improve code organization --- src/NLPacketCodec.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/NLPacketCodec.hpp b/src/NLPacketCodec.hpp index f9ee300..8775a2f 100644 --- a/src/NLPacketCodec.hpp +++ b/src/NLPacketCodec.hpp @@ -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: