UwUHax/interfaces.h
2021-08-27 18:58:23 +07:00

23 lines
699 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

extern void InitialiseInterfaces();
extern IPlayerInfoManager* pInfoPlayer;
extern CGlobalVarsBase* pGlobalvars;
extern void* pClientMode;
extern CDebugOverlay* pDebugOverlay;
extern CEngineClient* pEngine;
extern IPanel* pPanel;
extern CEntityList* pEntList;
extern ISurface* pSurface;
extern IMaterialSystem* pMaterialSystem;
extern IVModelRender* pModelRender;
extern CModelInfo* pModel;
extern HLCLient* pClient;
extern CEnginetrace* pEngineTrace;
typedef void* (*CreateInterfaceFn)(const char* pName, int* pReturnCode);
inline CreateInterfaceFn get_module_factory(HMODULE module)
{
return reinterpret_cast<CreateInterfaceFn>(GetProcAddress(module, "CreateInterface"));
}