From 3bf9df6b2785fa6d951086978a3e66f49427166a Mon Sep 17 00:00:00 2001 From: FluorescentCIAAfricanAmerican <0934gj3049fk@protonmail.com> Date: Wed, 22 Apr 2020 12:56:21 -0400 Subject: 1 --- common/IVGuiModuleLoader.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 common/IVGuiModuleLoader.h (limited to 'common/IVGuiModuleLoader.h') diff --git a/common/IVGuiModuleLoader.h b/common/IVGuiModuleLoader.h new file mode 100644 index 0000000..b2f5198 --- /dev/null +++ b/common/IVGuiModuleLoader.h @@ -0,0 +1,33 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef IVGUIMODULELOADER_H +#define IVGUIMODULELOADER_H +#ifdef _WIN32 +#pragma once +#endif + +#include "interface.h" + +//----------------------------------------------------------------------------- +// Purpose: interface to accessing all loaded modules +//----------------------------------------------------------------------------- +abstract_class IVGuiModuleLoader : public IBaseInterface +{ +public: + virtual int GetModuleCount() = 0; + virtual const char *GetModuleLabel(int moduleIndex) = 0; + virtual CreateInterfaceFn GetModuleFactory(int moduleIndex) = 0; + virtual bool ActivateModule(int moduleIndex) = 0; + virtual bool ActivateModule(const char *moduleName) = 0; + virtual void SetPlatformToRestart() = 0; +}; + +#define VGUIMODULELOADER_INTERFACE_VERSION "VGuiModuleLoader003" + + +#endif // IVGUIMODULELOADER_H -- cgit v1.2.3