feat: store local ID assigned by domain server for packet sourcing
This commit is contained in:
@@ -729,6 +729,9 @@ void OverteClient::handleDomainListReply(const char* data, size_t len) {
|
|||||||
uint16_t localID = ntohs(*reinterpret_cast<const uint16_t*>(data + offset));
|
uint16_t localID = ntohs(*reinterpret_cast<const uint16_t*>(data + offset));
|
||||||
offset += 2;
|
offset += 2;
|
||||||
|
|
||||||
|
// Store our local ID for use in sourced packets
|
||||||
|
m_localID = localID;
|
||||||
|
|
||||||
std::cout << "[OverteClient] Local ID: " << localID << std::endl;
|
std::cout << "[OverteClient] Local ID: " << localID << std::endl;
|
||||||
|
|
||||||
// Read permissions (32-bit)
|
// Read permissions (32-bit)
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ private:
|
|||||||
std::string m_sessionUUID; // Our client session UUID
|
std::string m_sessionUUID; // Our client session UUID
|
||||||
std::string m_username; // Domain account username (for future signature-based auth)
|
std::string m_username; // Domain account username (for future signature-based auth)
|
||||||
std::uint32_t m_sequenceNumber{0}; // Packet sequence number for NLPacket protocol
|
std::uint32_t m_sequenceNumber{0}; // Packet sequence number for NLPacket protocol
|
||||||
|
std::uint16_t m_localID{0}; // Local ID assigned by domain server
|
||||||
|
|
||||||
// Very small in-process world state for testing
|
// Very small in-process world state for testing
|
||||||
std::unordered_map<std::uint64_t, OverteEntity> m_entities;
|
std::unordered_map<std::uint64_t, OverteEntity> m_entities;
|
||||||
|
|||||||
Reference in New Issue
Block a user