feat: move type definitions for PacketVersion, LocalID, and SequenceNumber to improve code organization
This commit is contained in:
@@ -53,6 +53,10 @@ enum class PacketType : uint8_t {
|
|||||||
EntityData = 0x45,
|
EntityData = 0x45,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
using PacketVersion = uint8_t;
|
||||||
|
using LocalID = uint16_t;
|
||||||
|
using SequenceNumber = uint32_t;
|
||||||
|
|
||||||
// Packet version constants (from Overte source)
|
// Packet version constants (from Overte source)
|
||||||
namespace PacketVersions {
|
namespace PacketVersions {
|
||||||
constexpr PacketVersion DomainConnectRequest_SocketTypes = 27; // NoHostname(17) + 10
|
constexpr PacketVersion DomainConnectRequest_SocketTypes = 27; // NoHostname(17) + 10
|
||||||
@@ -61,10 +65,6 @@ namespace PacketVersions {
|
|||||||
constexpr PacketVersion Ping_IncludeConnectionID = 18;
|
constexpr PacketVersion Ping_IncludeConnectionID = 18;
|
||||||
}
|
}
|
||||||
|
|
||||||
using PacketVersion = uint8_t;
|
|
||||||
using LocalID = uint16_t;
|
|
||||||
using SequenceNumber = uint32_t;
|
|
||||||
|
|
||||||
// NLPacket structure (minimal implementation)
|
// NLPacket structure (minimal implementation)
|
||||||
class NLPacket {
|
class NLPacket {
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user