mirror of
https://github.com/YimMenu/RDR-Classes.git
synced 2024-12-22 22:47:31 +08:00
27 lines
669 B
C++
27 lines
669 B
C++
#pragma once
|
|
#include "rlScSessionManagerImpl.hpp"
|
|
|
|
class CNetworkScServerConnection
|
|
{
|
|
public:
|
|
virtual ~CNetworkScServerConnection() = default;
|
|
|
|
char m_Pad[0x78];
|
|
rage::rlScSessionManagerImpl m_SessionManager;
|
|
int dwordBB58;
|
|
rage::rlScSessionId m_CurrentSessionId;
|
|
std::uint64_t qwordBB70[2];
|
|
|
|
inline rage::rlScSession* GetCurrentSession()
|
|
{
|
|
auto& list = m_SessionManager.m_SessionPool;
|
|
for (auto entry = list.m_First; entry; entry = entry->m_Next)
|
|
{
|
|
if (entry->m_Session.m_SessionId == m_CurrentSessionId)
|
|
return &entry->m_Session;
|
|
}
|
|
|
|
return nullptr;
|
|
}
|
|
};
|
|
static_assert(sizeof(CNetworkScServerConnection) == 0xBB80); |