mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Add VClientEntityList003 interface
This commit is contained in:
parent
f314b9b4e7
commit
81374e8682
@ -1,7 +1,8 @@
|
||||
#pragma once
|
||||
#ifndef DEDICATED // We should think about not including this file at all in dedicated tbh.
|
||||
#include "public/include/client_class.h"
|
||||
#endif
|
||||
#include "public/include/icliententitylist.h"
|
||||
#endif // !DEDICATED
|
||||
|
||||
enum class ClientFrameStage_t : int
|
||||
{
|
||||
@ -63,6 +64,9 @@ inline bool* cl_time_use_host_tickcount = nullptr;
|
||||
|
||||
inline CHLClient* gHLClient = nullptr;
|
||||
inline CHLClient* g_pHLClient = nullptr;
|
||||
#ifndef DEDICATED
|
||||
inline IClientEntityList* g_pClientEntityList = nullptr;
|
||||
#endif // !DEDICATED
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
void CHLClient_Attach();
|
||||
|
@ -58,8 +58,9 @@ bool CModAppSystemGroup::Create(CModAppSystemGroup* pModAppSystemGroup)
|
||||
#endif // DEDICATED
|
||||
g_pConCommand->Init();
|
||||
g_pFactory->GetFactoriesFromRegister();
|
||||
|
||||
#ifndef DEDICATED
|
||||
g_pClientEntityList = g_pFactory->GetFactoryPtr("VClientEntityList003", false).RCast<IClientEntityList*>();
|
||||
|
||||
for (auto& map : g_pCVar->DumpToMap())
|
||||
{
|
||||
g_pConsole->m_vsvCommandBases.push_back(
|
||||
|
Loading…
x
Reference in New Issue
Block a user