feat: store local ID assigned by domain server for packet sourcing

This commit is contained in:
MayaTheShy
2025-11-09 01:02:40 -05:00
parent 70a291f7dc
commit 2e3b453ab0
2 changed files with 4 additions and 0 deletions

View File

@@ -729,6 +729,9 @@ void OverteClient::handleDomainListReply(const char* data, size_t len) {
uint16_t localID = ntohs(*reinterpret_cast<const uint16_t*>(data + offset));
offset += 2;
// Store our local ID for use in sourced packets
m_localID = localID;
std::cout << "[OverteClient] Local ID: " << localID << std::endl;
// Read permissions (32-bit)

View File

@@ -96,6 +96,7 @@ private:
std::string m_sessionUUID; // Our client session UUID
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::uint16_t m_localID{0}; // Local ID assigned by domain server
// Very small in-process world state for testing
std::unordered_map<std::uint64_t, OverteEntity> m_entities;