From 66f7ff9b8ea4f9582299f0e807e13b7ee1595046 Mon Sep 17 00:00:00 2001 From: aixxe Date: Tue, 20 Dec 2016 20:09:50 +0000 Subject: [PATCH] Add externs to interface and class headers. Signed-off-by: aixxe --- include/cstrike/Classes/CGlobalVarsBase.h | 4 +++- include/cstrike/Classes/CInput.h | 4 +++- include/cstrike/Interfaces/IBaseClientDLL.h | 4 +++- include/cstrike/Interfaces/IClientEntityList.h | 4 +++- include/cstrike/Interfaces/ICvar.h | 4 +++- include/cstrike/Interfaces/IGameEventManager2.h | 4 +++- include/cstrike/Interfaces/IInputInternal.h | 4 +++- include/cstrike/Interfaces/IInputSystem.h | 4 +++- include/cstrike/Interfaces/ILauncherMgr.h | 4 +++- include/cstrike/Interfaces/IMaterialSystem.h | 4 +++- include/cstrike/Interfaces/IPanel.h | 4 +++- include/cstrike/Interfaces/ISurface.h | 4 +++- include/cstrike/Interfaces/IVDebugOverlay.h | 4 +++- include/cstrike/Interfaces/IVEngineClient.h | 4 +++- include/cstrike/Interfaces/IVModelInfo.h | 4 +++- include/cstrike/Interfaces/IVModelRender.h | 4 +++- 16 files changed, 48 insertions(+), 16 deletions(-) diff --git a/include/cstrike/Classes/CGlobalVarsBase.h b/include/cstrike/Classes/CGlobalVarsBase.h index 744705d..c55fa4a 100644 --- a/include/cstrike/Classes/CGlobalVarsBase.h +++ b/include/cstrike/Classes/CGlobalVarsBase.h @@ -20,4 +20,6 @@ class CGlobalVarsBase { bool m_bClient; int nTimestampNetworkingBase; int nTimestampRandomizeWindow; -}; \ No newline at end of file +}; + +extern CGlobalVarsBase* globalvars; \ No newline at end of file diff --git a/include/cstrike/Classes/CInput.h b/include/cstrike/Classes/CInput.h index c98f101..fba7498 100644 --- a/include/cstrike/Classes/CInput.h +++ b/include/cstrike/Classes/CInput.h @@ -108,4 +108,6 @@ class CInput { cmd_verified->m_cmd = *cmd; cmd_verified->m_crc = cmd->GetChecksum(); } -}; \ No newline at end of file +}; + +extern CInput* input; \ No newline at end of file diff --git a/include/cstrike/Interfaces/IBaseClientDLL.h b/include/cstrike/Interfaces/IBaseClientDLL.h index b7c38e7..edd0de7 100644 --- a/include/cstrike/Interfaces/IBaseClientDLL.h +++ b/include/cstrike/Interfaces/IBaseClientDLL.h @@ -26,4 +26,6 @@ class IBaseClientDLL { void FrameStageNotify(ClientFrameStage_t stage) { return GetVirtualFunction(this, 35)(this, stage); } -}; \ No newline at end of file +}; + +extern IBaseClientDLL* clientdll; \ No newline at end of file diff --git a/include/cstrike/Interfaces/IClientEntityList.h b/include/cstrike/Interfaces/IClientEntityList.h index 471b99b..9a243b4 100644 --- a/include/cstrike/Interfaces/IClientEntityList.h +++ b/include/cstrike/Interfaces/IClientEntityList.h @@ -16,4 +16,6 @@ class IClientEntityList { virtual int GetHighestEntityIndex(void) = 0; virtual void SetMaxEntities(int max_entities) = 0; virtual int GetMaxEntities() = 0; -}; \ No newline at end of file +}; + +extern IClientEntityList* entitylist; \ No newline at end of file diff --git a/include/cstrike/Interfaces/ICvar.h b/include/cstrike/Interfaces/ICvar.h index 6f0ad5b..8f7ba84 100644 --- a/include/cstrike/Interfaces/ICvar.h +++ b/include/cstrike/Interfaces/ICvar.h @@ -9,4 +9,6 @@ class ICvar { template void ConsoleDPrintf(const char* Format, Values... Parameters) { return GetVirtualFunction(this, 24)(this, Format, Parameters...); } -}; \ No newline at end of file +}; + +extern ICvar* cvar; \ No newline at end of file diff --git a/include/cstrike/Interfaces/IGameEventManager2.h b/include/cstrike/Interfaces/IGameEventManager2.h index 0c00130..c3b7d5d 100644 --- a/include/cstrike/Interfaces/IGameEventManager2.h +++ b/include/cstrike/Interfaces/IGameEventManager2.h @@ -45,4 +45,6 @@ class IGameEventManager2 { virtual void FreeEvent(IGameEvent* event) = 0; virtual bool SerializeEvent(IGameEvent* event, bf_write* buf) = 0; virtual IGameEvent* UnserializeEvent(bf_read* buf) = 0; -}; \ No newline at end of file +}; + +extern IGameEventManager2* gameevents; \ No newline at end of file diff --git a/include/cstrike/Interfaces/IInputInternal.h b/include/cstrike/Interfaces/IInputInternal.h index 4fd0390..e59fb95 100644 --- a/include/cstrike/Interfaces/IInputInternal.h +++ b/include/cstrike/Interfaces/IInputInternal.h @@ -18,4 +18,6 @@ class IInputInternal { void SetMouseCodeState(MouseCode code, MouseCodeState_t state) { GetVirtualFunction(this, 84)(this, code, state); } -}; \ No newline at end of file +}; + +extern IInputInternal* inputinternal; \ No newline at end of file diff --git a/include/cstrike/Interfaces/IInputSystem.h b/include/cstrike/Interfaces/IInputSystem.h index 6ff824c..037dd8a 100644 --- a/include/cstrike/Interfaces/IInputSystem.h +++ b/include/cstrike/Interfaces/IInputSystem.h @@ -7,4 +7,6 @@ class IInputSystem { bool IsButtonDown(ButtonCode_t button) { return GetVirtualFunction(this, 11)(this, button); } -}; \ No newline at end of file +}; + +extern IInputSystem* inputsystem; \ No newline at end of file diff --git a/include/cstrike/Interfaces/ILauncherMgr.h b/include/cstrike/Interfaces/ILauncherMgr.h index 7c2eb38..c3ab9cf 100644 --- a/include/cstrike/Interfaces/ILauncherMgr.h +++ b/include/cstrike/Interfaces/ILauncherMgr.h @@ -33,4 +33,6 @@ class ILauncherMgr { void* GetWindowRef() { return GetVirtualFunction(this, 32)(this); } -}; \ No newline at end of file +}; + +extern ILauncherMgr* launchermgr; \ No newline at end of file diff --git a/include/cstrike/Interfaces/IMaterialSystem.h b/include/cstrike/Interfaces/IMaterialSystem.h index 22cb514..76af3c2 100644 --- a/include/cstrike/Interfaces/IMaterialSystem.h +++ b/include/cstrike/Interfaces/IMaterialSystem.h @@ -136,4 +136,6 @@ class IMaterialSystem { IMaterial* GetMaterial(MaterialHandle_t material) { return GetVirtualFunction(this, 76)(this, material); } -}; \ No newline at end of file +}; + +extern IMaterialSystem* matsystem; \ No newline at end of file diff --git a/include/cstrike/Interfaces/IPanel.h b/include/cstrike/Interfaces/IPanel.h index a43fe08..4dbaec0 100644 --- a/include/cstrike/Interfaces/IPanel.h +++ b/include/cstrike/Interfaces/IPanel.h @@ -11,4 +11,6 @@ class IPanel { void PaintTraverse(VPANEL vpanel, bool force_repaint, bool allow_force) { GetVirtualFunction(this, 42)(this, vpanel, force_repaint, allow_force); } -}; \ No newline at end of file +}; + +extern IPanel* panel; \ No newline at end of file diff --git a/include/cstrike/Interfaces/ISurface.h b/include/cstrike/Interfaces/ISurface.h index c17b63f..31330f8 100644 --- a/include/cstrike/Interfaces/ISurface.h +++ b/include/cstrike/Interfaces/ISurface.h @@ -92,4 +92,6 @@ class ISurface { void DrawOutlinedCircle(int x, int y, int radius, int segments) { return GetVirtualFunction(this, 99)(this, x, y, radius, segments); } -}; \ No newline at end of file +}; + +extern ISurface* matsurface; \ No newline at end of file diff --git a/include/cstrike/Interfaces/IVDebugOverlay.h b/include/cstrike/Interfaces/IVDebugOverlay.h index b26267c..56fdb88 100644 --- a/include/cstrike/Interfaces/IVDebugOverlay.h +++ b/include/cstrike/Interfaces/IVDebugOverlay.h @@ -5,4 +5,6 @@ class IVDebugOverlay { bool ScreenPosition(const Vector& world, Vector& screen) { return GetVirtualFunction(this, 9)(this, world, screen) == 0; } -}; \ No newline at end of file +}; + +extern IVDebugOverlay* debugoverlay; \ No newline at end of file diff --git a/include/cstrike/Interfaces/IVEngineClient.h b/include/cstrike/Interfaces/IVEngineClient.h index 9946f81..00c9e95 100644 --- a/include/cstrike/Interfaces/IVEngineClient.h +++ b/include/cstrike/Interfaces/IVEngineClient.h @@ -61,4 +61,6 @@ class IVEngineClient { void ClientCmd_Unrestricted(const char* command) { return GetVirtualFunction(this, 106)(this, command); } -}; \ No newline at end of file +}; + +extern IVEngineClient* engine; \ No newline at end of file diff --git a/include/cstrike/Interfaces/IVModelInfo.h b/include/cstrike/Interfaces/IVModelInfo.h index 1f4ca3a..cd4c340 100644 --- a/include/cstrike/Interfaces/IVModelInfo.h +++ b/include/cstrike/Interfaces/IVModelInfo.h @@ -97,4 +97,6 @@ class IVModelInfoClient { studiohdr_t* GetStudioModel(const model_t* model) { return GetVirtualFunction(this, 29)(this, model); } -}; \ No newline at end of file +}; + +extern IVModelInfoClient* modelinfo; \ No newline at end of file diff --git a/include/cstrike/Interfaces/IVModelRender.h b/include/cstrike/Interfaces/IVModelRender.h index bf452db..d16cbf5 100644 --- a/include/cstrike/Interfaces/IVModelRender.h +++ b/include/cstrike/Interfaces/IVModelRender.h @@ -52,4 +52,6 @@ class IVModelRender { void DrawModelExecute(DrawModelState_t const& state, ModelRenderInfo_t const& info, matrix3x4_t* bone) { GetVirtualFunction(this, 19)(this, state, info, bone); } -}; \ No newline at end of file +}; + +extern IVModelRender* modelrender; \ No newline at end of file